mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Removing obsolete call to start home activity with shell transitions am: 2b3dc6f730
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24156953 Change-Id: Ife4db9cda8ecd85ee21e51575a7bc24c37882ee7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -139,6 +139,7 @@ public class FallbackSwipeHandler extends
|
||||
mTmpMatrix.setScale(scale, scale,
|
||||
app.localBounds.exactCenterX(), app.localBounds.exactCenterY());
|
||||
builder.setMatrix(mTmpMatrix).setAlpha(alpha);
|
||||
builder.setShow();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -19,6 +19,7 @@ import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME;
|
||||
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
|
||||
import static com.android.launcher3.util.NavigationMode.NO_BUTTON;
|
||||
import static com.android.quickstep.GestureState.GestureEndTarget.RECENTS;
|
||||
import static com.android.quickstep.GestureState.STATE_RECENTS_ANIMATION_INITIALIZED;
|
||||
import static com.android.quickstep.GestureState.STATE_RECENTS_ANIMATION_STARTED;
|
||||
@@ -37,6 +38,7 @@ import androidx.annotation.UiThread;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.util.DisplayController;
|
||||
import com.android.quickstep.TopTaskTracker.CachedTaskInfo;
|
||||
import com.android.quickstep.util.ActiveGestureLog;
|
||||
import com.android.quickstep.views.DesktopTaskView;
|
||||
@@ -162,10 +164,16 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
|
||||
for (RemoteAnimationTarget compat : appearedTaskTargets) {
|
||||
if (compat.windowConfiguration.getActivityType() == ACTIVITY_TYPE_HOME
|
||||
&& activityInterface.getCreatedActivity() instanceof RecentsActivity) {
|
||||
// When receive opening home activity while recents is running, enter home
|
||||
// and dismiss recents.
|
||||
((RecentsActivity) activityInterface.getCreatedActivity()).startHome();
|
||||
&& activityInterface.getCreatedActivity() instanceof RecentsActivity
|
||||
&& DisplayController.getNavigationMode(mCtx) != NO_BUTTON) {
|
||||
// The only time we get onTasksAppeared() in button navigation with a
|
||||
// 3p launcher is if the user goes to overview first, and in this case we
|
||||
// can immediately finish the transition
|
||||
RecentsView recentsView =
|
||||
activityInterface.getCreatedActivity().getOverviewPanel();
|
||||
if (recentsView != null) {
|
||||
recentsView.finishRecentsAnimation(true, null);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user