forked from organicmaps/organicmaps
[android] Fixed review notes https://github.com/mapsme/omim/pull/10222/files#r249027662
This commit is contained in:
parent
04c94bccfb
commit
660b4b2879
1 changed files with 3 additions and 3 deletions
|
@ -26,13 +26,13 @@ public class TagsResFactory
|
|||
makeSelectedDrawable(color));
|
||||
drawable.addState(new int[] { -android.R.attr.state_selected, android.R.attr.state_enabled },
|
||||
makeDefaultDrawable(context, color));
|
||||
int unselectedDisabledColor = getUnselectedDisabledTagColor(context);
|
||||
int unselectedDisabledColor = getDisabledTagColor(context);
|
||||
drawable.addState(new int[] { -android.R.attr.state_selected, -android.R.attr.state_enabled },
|
||||
makeDefaultDrawable(context, unselectedDisabledColor));
|
||||
return drawable;
|
||||
}
|
||||
|
||||
private static int getUnselectedDisabledTagColor(@NonNull Context context)
|
||||
private static int getDisabledTagColor(@NonNull Context context)
|
||||
{
|
||||
Resources res = context.getResources();
|
||||
return ThemeUtils.isNightTheme() ? res.getColor(R.color.white_12)
|
||||
|
@ -62,7 +62,7 @@ public class TagsResFactory
|
|||
new int[] {
|
||||
context.getResources().getColor(android.R.color.white),
|
||||
color,
|
||||
getUnselectedDisabledTagColor(context)
|
||||
getDisabledTagColor(context)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue