Fix soft nav color in conversation list.
Going in and out of multi-select mode would screw it up. This fixes it by setting the flags correctly instead of blasting them all away.
This commit is contained in:
parent
f1ca5fc8e2
commit
019d036f69
1 changed files with 4 additions and 2 deletions
|
@ -467,7 +467,8 @@ public class ConversationListFragment extends Fragment
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
getActivity().getWindow().getDecorView().setSystemUiVisibility(0);
|
int current = getActivity().getWindow().getDecorView().getSystemUiVisibility();
|
||||||
|
getActivity().getWindow().getDecorView().setSystemUiVisibility(current & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -500,7 +501,8 @@ public class ConversationListFragment extends Fragment
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
getActivity().getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
int current = getActivity().getWindow().getDecorView().getSystemUiVisibility();
|
||||||
|
getActivity().getWindow().getDecorView().setSystemUiVisibility(current | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
actionMode = null;
|
actionMode = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue