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:
Greyson Parrelli 2019-10-22 13:01:42 -04:00
parent f1ca5fc8e2
commit 019d036f69

View file

@ -467,7 +467,8 @@ public class ConversationListFragment extends Fragment
}
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;
@ -500,7 +501,8 @@ public class ConversationListFragment extends Fragment
}
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;