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

Commit fb999dc7 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

No NavigationBar layer in tablets

Fixes: 191660313
Test: adb shell dumpsys window

Change-Id: Ica9dca508dd377b3b687ef068b578723da62ba15
parent 4f34eac3
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -251,8 +251,7 @@ public class NavigationBarController implements Callbacks,

    /** @return {@code true} if taskbar is enabled, false otherwise */
    private boolean initializeTaskbarIfNecessary() {
        boolean isShowingTaskbar = mIsTablet && mNavMode == NAV_BAR_MODE_3BUTTON;
        if (isShowingTaskbar) {
        if (mIsTablet) {
            // Remove navigation bar when taskbar is showing, currently only for 3 button mode
            removeNavigationBar(mContext.getDisplayId());
            mCommandQueue.addCallback(mTaskbarDelegate);
@@ -261,7 +260,7 @@ public class NavigationBarController implements Callbacks,
            mCommandQueue.removeCallback(mTaskbarDelegate);
            mTaskbarDelegate.destroy();
        }
        return isShowingTaskbar;
        return mIsTablet;
    }

    @Override
@@ -332,7 +331,7 @@ public class NavigationBarController implements Callbacks,
            return;
        }

        if (mIsTablet && mNavMode == NAV_BAR_MODE_3BUTTON) {
        if (mIsTablet) {
            return;
        }