From c119e5849eabca4833cf93411919148c45138b05 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 1 Aug 2016 16:51:10 +0300 Subject: [PATCH] Fix search topbar in portrait --- OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 06bbeb06f5..46b805f859 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -234,8 +234,8 @@ public class MapInfoLayer extends OsmandMapLayer { } private void updateQuickSearch(boolean nightMode, TextState ts) { - quickSearchView.setBackgroundResource(AndroidUiHelper.isOrientationPortrait(map) ? ts.boxTop - : ts.boxFree); + int bgColorId = nightMode ? R.color.bg_color_dark : R.color.bg_color_light; + quickSearchView.setBackgroundResource(AndroidUiHelper.isOrientationPortrait(map) ? bgColorId : ts.boxFree); quickSearchView.updateTextColor(nightMode, ts.textColor); }