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

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

View File

@@ -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) {