From ebb10ad22369bef83ffb3b0d8f882fd0ee00002e Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Thu, 6 Jun 2019 12:12:10 +0300 Subject: [PATCH] fix for quick action btn night theme --- OsmAnd/src/net/osmand/plus/views/MapQuickActionLayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapQuickActionLayer.java b/OsmAnd/src/net/osmand/plus/views/MapQuickActionLayer.java index 0d0e6626bc..07f0661289 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapQuickActionLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapQuickActionLayer.java @@ -95,7 +95,7 @@ public class MapQuickActionLayer extends OsmandMapLayer implements QuickActionRe quickActionButton = (ImageButton) mapActivity.findViewById(R.id.map_quick_actions_button); setQuickActionButtonMargin(); isLayerOn = quickActionRegistry.isQuickActionOn(); - nightMode = app.getDaynightHelper().isNightModeForMapControls(); + nightMode = app.getDaynightHelper().isNightMode(); updateQuickActionButton(false); quickActionButton.setContentDescription(mapActivity.getString(R.string.configure_screen_quick_action)); quickActionButton.setOnClickListener(new View.OnClickListener() { @@ -375,7 +375,7 @@ public class MapQuickActionLayer extends OsmandMapLayer implements QuickActionRe @Override public void onDraw(Canvas canvas, RotatedTileBox box, DrawSettings settings) { - boolean nightMode = app.getDaynightHelper().isNightModeForMapControls(); + boolean nightMode = app.getDaynightHelper().isNightMode(); if (isInMovingMarkerMode()) { canvas.translate(box.getCenterPixelX() - contextMarker.getWidth() / 2, box.getCenterPixelY() - contextMarker.getHeight()); contextMarker.draw(canvas);