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

Commit cf6c4d17 authored by Ben Lin's avatar Ben Lin Committed by Automerger Merge Worker
Browse files

Don't set shelf height if we are in landscape. am: e50d7a2f am: f75d7c95...

Don't set shelf height if we are in landscape. am: e50d7a2f am: f75d7c95 am: 8ad487f6 am: a00624ca

Change-Id: Id817ff647231869eec2745baa954fd6f633ee2eb
parents 49b9207a a00624ca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@ import com.android.launcher3.util.IntArray;
import com.android.launcher3.util.TouchController;
import com.android.launcher3.util.UiThreadHelper;
import com.android.launcher3.util.UiThreadHelper.AsyncCommand;
import com.android.quickstep.RecentsModel;
import com.android.quickstep.SysUINavigationMode;
import com.android.quickstep.SysUINavigationMode.Mode;
import com.android.quickstep.SystemUiProxy;
@@ -169,7 +168,8 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
        boolean willUserBeActive = (getActivityFlags() & ACTIVITY_STATE_USER_WILL_BE_ACTIVE) != 0;
        boolean visible = (state == NORMAL || state == OVERVIEW)
                && (willUserBeActive || isUserActive())
                && !profile.isVerticalBarLayout();
                && !profile.isVerticalBarLayout()
                && profile.isPhone && !profile.isLandscape;
        UiThreadHelper.runAsyncCommand(this, SET_SHELF_HEIGHT, visible ? 1 : 0,
                profile.hotseatBarSizePx);
        if (state == NORMAL && !inTransition) {