Add condition
This commit is contained in:
parent
ddd2a329e2
commit
a2cb399f57
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue