Fix added wpt color
This commit is contained in:
parent
73794fb3cf
commit
5fd366d947
1 changed files with 2 additions and 4 deletions
|
@ -8,7 +8,6 @@ import android.graphics.drawable.Drawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import net.osmand.data.LatLon;
|
import net.osmand.data.LatLon;
|
||||||
import net.osmand.data.PointDescription;
|
|
||||||
import net.osmand.plus.GPXUtilities.WptPt;
|
import net.osmand.plus.GPXUtilities.WptPt;
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
|
@ -37,8 +36,7 @@ public class WprPtEditorFragment extends PointEditorFragment {
|
||||||
public void onCreate(final Bundle savedInstanceState) {
|
public void onCreate(final Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
boolean light = getMyApplication().getSettings().isLightContent();
|
defaultColor = getResources().getColor(R.color.gpx_color_point);
|
||||||
defaultColor = light ? R.color.icon_color : R.color.icon_color_light;
|
|
||||||
|
|
||||||
wpt = editor.getWptPt();
|
wpt = editor.getWptPt();
|
||||||
}
|
}
|
||||||
|
@ -151,7 +149,7 @@ public class WprPtEditorFragment extends PointEditorFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Drawable getCategoryIcon() {
|
public Drawable getCategoryIcon() {
|
||||||
int color = defaultColor;
|
int color = wpt.getColor(defaultColor);
|
||||||
return getIcon(R.drawable.ic_action_folder_stroke, color);
|
return getIcon(R.drawable.ic_action_folder_stroke, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue