Colors fix

This commit is contained in:
androiddevkkotlin 2020-11-30 09:12:41 +02:00
parent fb2a3edb19
commit 18ce71167b
2 changed files with 1 additions and 2 deletions

View file

@ -329,7 +329,7 @@ public class AndroidUtils {
},
new int[] {
Color.GRAY,
ContextCompat.getColor(ctx, night? R.color.active_color_primary_light : R.color.active_color_primary_dark),
ContextCompat.getColor(ctx, night? R.color.active_color_primary_dark : R.color.active_color_primary_light),
Color.GRAY}
);
}

View file

@ -150,7 +150,6 @@ public class ElevationDateBottomSheet extends MenuBottomSheetDialogFragment {
private void createReliefFactorButtons(Context context) {
for (int i = 0; i < parameters.size(); i++) {
RoutingParameter parameter = parameters.get(i);
boolean nightMode = app.getDaynightHelper().isNightModeForMapControls();
final BottomSheetItemWithCompoundButton[] preferenceItem = new BottomSheetItemWithCompoundButton[1];
preferenceItem[0] = (BottomSheetItemWithCompoundButton) new BottomSheetItemWithCompoundButton.Builder()
.setChecked(i == selectedEntryIndex)