Use TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds().

This commit is contained in:
Isira Seneviratne 2020-10-22 05:45:27 +05:30
parent 208cb405ca
commit 187aaafddc
2 changed files with 6 additions and 4 deletions

View file

@ -23,6 +23,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.content.res.AppCompatResources;
import androidx.core.widget.TextViewCompat;
import androidx.fragment.app.Fragment;
import org.schabi.newpipe.R;
@ -247,7 +248,7 @@ public class NotificationSettingsFragment extends Fragment {
} else {
drawable.mutate().setColorFilter(color, PorterDuff.Mode.SRC_IN);
}
radioButton.setCompoundDrawablesWithIntrinsicBounds(
TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(radioButton,
null, null, drawable, null);
}
}