Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b940670 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 4ed5c3aa 3c895271
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -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) {