In system nav settings, makes back inset animation full screen.
The animated inset size now appears above status bar and nav bar. Bug: 154005084 Test: Manual test in light and dark themes. Change-Id: I1fc9d3ab6e478d29b72b15ffec09ca3a5a50de5b
This commit is contained in:
@@ -60,18 +60,26 @@ public class BackGestureIndicatorView extends LinearLayout {
|
||||
mLeftIndicator.setImageDrawable(mLeftDrawable);
|
||||
mRightIndicator.setImageDrawable(mRightDrawable);
|
||||
|
||||
int visibility = getSystemUiVisibility()
|
||||
| View.SYSTEM_UI_FLAG_IMMERSIVE
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_FULLSCREEN;
|
||||
|
||||
TypedArray a = context.obtainStyledAttributes(new int[] {
|
||||
android.R.attr.windowLightNavigationBar,
|
||||
android.R.attr.windowLightStatusBar});
|
||||
if (a.getBoolean(0, false)) {
|
||||
setSystemUiVisibility(
|
||||
getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
|
||||
visibility |= View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
|
||||
}
|
||||
if (a.getBoolean(1, false)) {
|
||||
setSystemUiVisibility(
|
||||
getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
visibility |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
|
||||
}
|
||||
a.recycle();
|
||||
|
||||
setSystemUiVisibility(visibility);
|
||||
}
|
||||
|
||||
public void setIndicatorWidth(int width, boolean leftIndicator) {
|
||||
|
Reference in New Issue
Block a user