Fix profile appearance

This commit is contained in:
Dima-1 2020-01-24 19:20:48 +02:00
parent 3c14725377
commit 89f260c926

View file

@ -450,10 +450,12 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
}
private void updateProfileNameAppearance() {
if (profileName.isFocusable() && profileName.isFocusableInTouchMode()) {
int selectedColor = ContextCompat.getColor(app, changedProfile.color.getColor(isNightMode()));
profileNameOtfb.setPrimaryColor(selectedColor);
profileName.getBackground().mutate().setColorFilter(selectedColor, PorterDuff.Mode.SRC_ATOP);
if (profileName != null) {
if (profileName.isFocusable() && profileName.isFocusableInTouchMode()) {
int selectedColor = ContextCompat.getColor(app, changedProfile.color.getColor(isNightMode()));
profileNameOtfb.setPrimaryColor(selectedColor);
profileName.getBackground().mutate().setColorFilter(selectedColor, PorterDuff.Mode.SRC_ATOP);
}
}
}