Move a line of code
This commit is contained in:
parent
a2cb399f57
commit
8d3c86aaec
1 changed files with 1 additions and 1 deletions
|
@ -30,10 +30,10 @@ public class BaseOsmAndFragment extends Fragment {
|
|||
Activity activity = getActivity();
|
||||
int colorId = getStatusBarColorId();
|
||||
if (colorId != -1) {
|
||||
statusBarColor = activity.getWindow().getStatusBarColor();
|
||||
if (activity instanceof MapActivity) {
|
||||
((MapActivity) activity).updateStatusBarColor();
|
||||
} else {
|
||||
statusBarColor = activity.getWindow().getStatusBarColor();
|
||||
activity.getWindow().setStatusBarColor(ContextCompat.getColor(activity, colorId));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue