Merge pull request #8316 from osmandapp/Fix_profile_appearance

Fix profile appearance
This commit is contained in:
vshcherb 2020-01-24 18:25:01 +01:00 committed by GitHub
commit 4f9cfeed7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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