Fix "Map style" bottom sheet item text color
This commit is contained in:
parent
7d3da6730f
commit
f9f008d4a2
1 changed files with 1 additions and 4 deletions
|
@ -2,12 +2,10 @@ package net.osmand.plus.dialogs;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.ColorStateList;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.annotation.ColorInt;
|
import android.support.annotation.ColorInt;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.support.v4.widget.CompoundButtonCompat;
|
|
||||||
import android.support.v4.widget.NestedScrollView;
|
import android.support.v4.widget.NestedScrollView;
|
||||||
import android.view.ContextThemeWrapper;
|
import android.view.ContextThemeWrapper;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
@ -18,7 +16,6 @@ import android.widget.RadioButton;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import net.osmand.AndroidUtils;
|
|
||||||
import net.osmand.Collator;
|
import net.osmand.Collator;
|
||||||
import net.osmand.OsmAndCollator;
|
import net.osmand.OsmAndCollator;
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
|
@ -222,7 +219,7 @@ public class SelectMapStyleBottomSheetDialogFragment extends MenuBottomSheetDial
|
||||||
@ColorInt
|
@ColorInt
|
||||||
private int getStyleTitleColor(boolean selected) {
|
private int getStyleTitleColor(boolean selected) {
|
||||||
int colorId = selected
|
int colorId = selected
|
||||||
? getMyApplication() != null ? getMyApplication().getSettings().APPLICATION_MODE.get().getIconColorInfo().getColor(nightMode) : getActiveColorId()
|
? getActiveColorId()
|
||||||
: nightMode ? R.color.text_color_primary_dark : R.color.text_color_primary_light;
|
: nightMode ? R.color.text_color_primary_dark : R.color.text_color_primary_light;
|
||||||
return getResolvedColor(colorId);
|
return getResolvedColor(colorId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue