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

Commit f96b1ad2 authored by Ivan Lee's avatar Ivan Lee Committed by Android Git Automerger
Browse files

am 667d6888: Revert workaround for move to default screen on home intent.

* commit '667d6888':
  Revert workaround for move to default screen on home intent.
parents 4aa48517 667d6888
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1868,8 +1868,6 @@ 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.
@@ -1923,6 +1921,8 @@ 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() {