Apply proper color when action mode destroyed
This commit is contained in:
parent
80deb301e5
commit
3c4efdd8f9
1 changed files with 8 additions and 2 deletions
|
@ -501,8 +501,14 @@ public class ConversationListFragment extends Fragment
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
|
TypedArray lightStatusBarAttr = getActivity().getTheme().obtainStyledAttributes(new int[] {android.R.attr.windowLightStatusBar});
|
||||||
int current = getActivity().getWindow().getDecorView().getSystemUiVisibility();
|
int current = getActivity().getWindow().getDecorView().getSystemUiVisibility();
|
||||||
getActivity().getWindow().getDecorView().setSystemUiVisibility(current | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
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…
Add table
Reference in a new issue