From d66005241625fd4267ebe30607f6233a25aea2a6 Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Thu, 12 Dec 2024 14:44:22 -0800 Subject: [PATCH] Fix swipe up to home gesture when entering scheduler page bug: 383491628 Test video: https://drive.google.com/file/d/1brSO55cBeZZMTLq5dZ-rNO7Z-aeytghe/view?usp=sharing Flag: com.android.launcher3.work_scheduler_in_work_profile Change-Id: I0a8e0b64ac175ef6ccfc4f2db1b751ea6aef6995 --- src/com/android/launcher3/allapps/WorkUtilityView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/allapps/WorkUtilityView.java b/src/com/android/launcher3/allapps/WorkUtilityView.java index b263639c86..bccc279442 100644 --- a/src/com/android/launcher3/allapps/WorkUtilityView.java +++ b/src/com/android/launcher3/allapps/WorkUtilityView.java @@ -134,7 +134,8 @@ public class WorkUtilityView extends LinearLayout implements Insettable, if (shouldUseScheduler()) { mSchedulerButton.setVisibility(VISIBLE); mSchedulerButton.setOnClickListener(view -> - mContext.startActivity(new Intent(mWorkSchedulerIntentAction))); + mActivityContext.startActivitySafely(view, + new Intent(mWorkSchedulerIntentAction), null /* itemInfo */)); } }