mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 08:08:33 +00:00
Apply proper color when action mode destroyed
This commit is contained in:
parent
80deb301e5
commit
3c4efdd8f9
@ -501,8 +501,14 @@ public class ConversationListFragment extends Fragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
int current = getActivity().getWindow().getDecorView().getSystemUiVisibility();
|
TypedArray lightStatusBarAttr = getActivity().getTheme().obtainStyledAttributes(new int[] {android.R.attr.windowLightStatusBar});
|
||||||
getActivity().getWindow().getDecorView().setSystemUiVisibility(current | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
int current = getActivity().getWindow().getDecorView().getSystemUiVisibility();
|
||||||
|
int statusBarMode = lightStatusBarAttr.getBoolean(0, false) ? current | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
||||||
|
: current & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
|
||||||
|
|
||||||
|
getActivity().getWindow().getDecorView().setSystemUiVisibility(statusBarMode);
|
||||||
|
|
||||||
|
lightStatusBarAttr.recycle();
|
||||||
}
|
}
|
||||||
|
|
||||||
actionMode = null;
|
actionMode = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user