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

Commit e2824c4e authored by Winson Chung's avatar Winson Chung Committed by Android Git Automerger
Browse files

am 1b247d9f: Merge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby

* commit '1b247d9f':
  Adding workaround for regression caused by ag/752175
parents 1ea392f0 1b247d9f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1833,6 +1833,8 @@ public class Launcher extends Activity
        boolean alreadyOnHome = mHasFocus && ((intent.getFlags() &
                Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT)
                != Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
        boolean moveToDefaultScreen = mLauncherCallbacks != null ?
                mLauncherCallbacks.shouldMoveToDefaultScreenOnHomeIntent() : true;
        boolean isActionMain = Intent.ACTION_MAIN.equals(intent.getAction());
        if (isActionMain) {
            // also will cancel mWaitingForResult.
@@ -1886,8 +1888,6 @@ public class Launcher extends Activity
        // as slow logic in the callbacks eat into the time the scroller expects for the snapToPage
        // animation.
        if (isActionMain) {
            boolean moveToDefaultScreen = mLauncherCallbacks != null ?
                    mLauncherCallbacks.shouldMoveToDefaultScreenOnHomeIntent() : true;
            if (alreadyOnHome && mState == State.WORKSPACE && !mWorkspace.isTouchActive() &&
                    openFolder == null && moveToDefaultScreen) {
                mWorkspace.post(new Runnable() {