From cd17e6db951dcc362d073e8f5ce6e03168762616 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Thu, 18 Apr 2019 10:40:31 -0700 Subject: [PATCH] Use ActivityOptions.makeBasic for App Info animation. Bug: 130442915 Change-Id: I4ca416d7aa27fc8c52fe5fe36384fe5839e83e06 --- src/com/android/launcher3/popup/SystemShortcut.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java index 074c149289..563f3b3c65 100644 --- a/src/com/android/launcher3/popup/SystemShortcut.java +++ b/src/com/android/launcher3/popup/SystemShortcut.java @@ -3,6 +3,7 @@ package com.android.launcher3.popup; import static com.android.launcher3.userevent.nano.LauncherLogProto.Action; import static com.android.launcher3.userevent.nano.LauncherLogProto.ControlType; +import android.app.ActivityOptions; import android.content.Context; import android.content.Intent; import android.graphics.Rect; @@ -159,9 +160,8 @@ public abstract class SystemShortcut extends Ite return (view) -> { dismissTaskMenuView(activity); Rect sourceBounds = activity.getViewBounds(view); - Bundle opts = activity.getActivityLaunchOptionsAsBundle(view); new PackageManagerHelper(activity).startDetailsActivityForInfo( - itemInfo, sourceBounds, opts); + itemInfo, sourceBounds, ActivityOptions.makeBasic().toBundle()); activity.getUserEventDispatcher().logActionOnControl(Action.Touch.TAP, ControlType.APPINFO_TARGET, view); };