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

Commit 2ae4a108 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Change-Id: Iaff3df412af4e8101a02b9000ce2ed986c5e0bfb
parents ffe907b2 9b940670
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) {