Fix search topbar in portrait

This commit is contained in:
Alexey Kulish 2016-08-01 16:51:10 +03:00
parent fc6a453b14
commit c119e5849e

View file

@ -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);
}