Add condition

This commit is contained in:
alex 2017-11-06 21:24:56 +02:00
parent ddd2a329e2
commit a2cb399f57

View file

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