Merge "In system nav settings, makes back inset animation full screen." into rvc-dev am: 9b940670c1

Change-Id: I7c686b711ab2961278844e9026277fa2c64ef8f9
This commit is contained in:
TreeHugger Robot
2020-05-06 05:46:00 +00:00
committed by Automerger Merge Worker

View File

@@ -60,18 +60,26 @@ public class BackGestureIndicatorView extends LinearLayout {
mLeftIndicator.setImageDrawable(mLeftDrawable); mLeftIndicator.setImageDrawable(mLeftDrawable);
mRightIndicator.setImageDrawable(mRightDrawable); 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[] { TypedArray a = context.obtainStyledAttributes(new int[] {
android.R.attr.windowLightNavigationBar, android.R.attr.windowLightNavigationBar,
android.R.attr.windowLightStatusBar}); android.R.attr.windowLightStatusBar});
if (a.getBoolean(0, false)) { if (a.getBoolean(0, false)) {
setSystemUiVisibility( visibility |= View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
} }
if (a.getBoolean(1, false)) { if (a.getBoolean(1, false)) {
setSystemUiVisibility( visibility |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
} }
a.recycle(); a.recycle();
setSystemUiVisibility(visibility);
} }
public void setIndicatorWidth(int width, boolean leftIndicator) { public void setIndicatorWidth(int width, boolean leftIndicator) {