diff --git a/OsmAnd/src/net/osmand/plus/base/BaseOsmAndFragment.java b/OsmAnd/src/net/osmand/plus/base/BaseOsmAndFragment.java index 6d269becbd..a2b1564170 100644 --- a/OsmAnd/src/net/osmand/plus/base/BaseOsmAndFragment.java +++ b/OsmAnd/src/net/osmand/plus/base/BaseOsmAndFragment.java @@ -60,7 +60,7 @@ public class BaseOsmAndFragment extends Fragment { @Override public void onStop() { super.onStop(); - if (Build.VERSION.SDK_INT >= 21) { + if (Build.VERSION.SDK_INT >= 21 && getStatusBarColorId() != -1) { Activity activity = getActivity(); if (activity instanceof MapActivity) { ((MapActivity) activity).updateStatusBarColor();