From 8dde81150d00260d338716481634e8d47fe91c0e Mon Sep 17 00:00:00 2001 From: Suphon Thanakornpakapong Date: Sat, 19 Jun 2021 20:51:55 +0700 Subject: [PATCH] Launch settings with proper animation --- src/com/android/launcher3/views/OptionsPopupView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/views/OptionsPopupView.java b/src/com/android/launcher3/views/OptionsPopupView.java index d558781be8..328e2310e4 100644 --- a/src/com/android/launcher3/views/OptionsPopupView.java +++ b/src/com/android/launcher3/views/OptionsPopupView.java @@ -191,9 +191,10 @@ public class OptionsPopupView extends ArrowPopup public static boolean startSettings(View view) { TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "start: startSettings"); Launcher launcher = Launcher.getLauncher(view.getContext()); - launcher.startActivity(new Intent(Intent.ACTION_APPLICATION_PREFERENCES) + Intent intent = new Intent(Intent.ACTION_APPLICATION_PREFERENCES) .setPackage(launcher.getPackageName()) - .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); + .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + launcher.startActivitySafely(view, intent, dummyInfo(intent), null); return true; }