forked from organicmaps/organicmaps
[android] Fixed some night colors.
This commit is contained in:
parent
be61a5e966
commit
0995e350a7
3 changed files with 10 additions and 4 deletions
|
@ -137,7 +137,7 @@
|
|||
<item name="nav_background">@drawable/button_navigation_circle</item>
|
||||
</style>
|
||||
|
||||
<style name="MwmTheme.NavButtons.Night">
|
||||
<style name="MwmTheme.NavButtons.Night" parent="MwmTheme.Night">
|
||||
<item name="nav_background">@drawable/button_navigation_circle_night</item>
|
||||
</style>
|
||||
|
||||
|
@ -150,7 +150,7 @@
|
|||
<item name="newsMarker">@drawable/news_marker</item>
|
||||
</style>
|
||||
|
||||
<style name="MwmTheme.Navigation.Night">
|
||||
<style name="MwmTheme.Navigation.Night" parent="MwmTheme.Night">
|
||||
<item name="iconTint">@color/black_primary</item>
|
||||
<item name="newsMarker">@drawable/news_marker_night</item>
|
||||
</style>
|
||||
|
|
|
@ -17,12 +17,11 @@ import com.mapswithme.util.statistics.Statistics;
|
|||
public class MyPositionButton
|
||||
{
|
||||
private final ImageView mButton;
|
||||
private final SparseArray<Drawable> mIcons = new SparseArray<>(); // Location mode -> Button icon
|
||||
private static final SparseArray<Drawable> mIcons = new SparseArray<>(); // Location mode -> Button icon
|
||||
|
||||
public MyPositionButton(View button)
|
||||
{
|
||||
mButton = (ImageView) button;
|
||||
mIcons.clear();
|
||||
mButton.setOnClickListener(new View.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
|
@ -73,4 +72,9 @@ public class MyPositionButton
|
|||
if (image instanceof AnimationDrawable)
|
||||
((AnimationDrawable) image).start();
|
||||
}
|
||||
|
||||
public static void clearCache()
|
||||
{
|
||||
mIcons.clear();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.mapswithme.maps.downloader.DownloaderStatusIcon;
|
|||
import com.mapswithme.maps.location.LocationHelper;
|
||||
import com.mapswithme.maps.location.LocationListener;
|
||||
import com.mapswithme.maps.routing.RoutingController;
|
||||
import com.mapswithme.maps.widget.menu.MyPositionButton;
|
||||
import com.mapswithme.util.concurrency.UiThread;
|
||||
|
||||
public final class ThemeSwitcher
|
||||
|
@ -91,6 +92,7 @@ public final class ThemeSwitcher
|
|||
Framework.nativeMarkMapStyle(style);
|
||||
|
||||
DownloaderStatusIcon.clearCache();
|
||||
MyPositionButton.clearCache();
|
||||
|
||||
Activity a = MwmApplication.backgroundTracker().getTopActivity();
|
||||
if (a != null && !a.isFinishing())
|
||||
|
|
Loading…
Add table
Reference in a new issue