From 4d18da78c02785baea4baea37392a6eb889538d9 Mon Sep 17 00:00:00 2001 From: Schneider Victor-tulias Date: Wed, 15 Jun 2022 14:48:40 -0700 Subject: [PATCH 1/6] Fix All set activity not drawing on initial swipe. The launcher was not properly preloading upon launching the All Set Activity. The Launcher would only start loading once the user started swiping up. This would stop the all set activity from drawing. Test: Factory reset with a restore and tested the all set page. Fixes: 234536107 Change-Id: I6bcb805ea6c43fb993f2b57499444ea62bcc37e1 --- .../quickstep/TouchInteractionService.java | 15 +++++++++++++++ .../quickstep/interaction/AllSetActivity.java | 2 ++ 2 files changed, 17 insertions(+) diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 16f141b17b..61d36fb1f7 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -147,6 +147,8 @@ public class TouchInteractionService extends Service */ public class TISBinder extends IOverviewProxy.Stub { + @Nullable private Runnable mOnOverviewTargetChangeListener = null; + @BinderThread public void onInitialize(Bundle bundle) { ISystemUiProxy proxy = ISystemUiProxy.Stub.asInterface( @@ -327,6 +329,18 @@ public class TouchInteractionService extends Service public void setGestureBlockedTaskId(int taskId) { mDeviceState.setGestureBlockingTaskId(taskId); } + + /** Sets a listener to be run on Overview Target updates. */ + public void setOverviewTargetChangeListener(@Nullable Runnable listener) { + mOnOverviewTargetChangeListener = listener; + } + + protected void onOverviewTargetChange() { + if (mOnOverviewTargetChangeListener != null) { + mOnOverviewTargetChangeListener.run(); + mOnOverviewTargetChangeListener = null; + } + } } private static boolean sConnected = false; @@ -487,6 +501,7 @@ public class TouchInteractionService extends Service if (newOverviewActivity != null) { mTaskbarManager.setActivity(newOverviewActivity); } + mTISBinder.onOverviewTargetChange(); } @UiThread diff --git a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java index caf61c790e..5680170a8f 100644 --- a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java +++ b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java @@ -202,6 +202,7 @@ public class AllSetActivity extends Activity { mBinder = binder; mBinder.getTaskbarManager().setSetupUIVisible(isResumed()); mBinder.setSwipeUpProxy(isResumed() ? this::createSwipeUpProxy : null); + mBinder.setOverviewTargetChangeListener(mBinder::preloadOverviewForSUWAllSet); mBinder.preloadOverviewForSUWAllSet(); } @@ -218,6 +219,7 @@ public class AllSetActivity extends Activity { if (mBinder != null) { mBinder.getTaskbarManager().setSetupUIVisible(false); mBinder.setSwipeUpProxy(null); + mBinder.setOverviewTargetChangeListener(null); } } From dd44423c3f757b1a5180088a6649ed9a9c110dd3 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Sat, 18 Jun 2022 22:35:57 -0700 Subject: [PATCH 2/6] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: I5d8815a46e2981f5ad1bf173c3903764062cf4f4 --- quickstep/res/values-en-rCA/strings.xml | 2 +- quickstep/res/values-mk/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/res/values-en-rCA/strings.xml b/quickstep/res/values-en-rCA/strings.xml index 487ea729c5..8c98e3c124 100644 --- a/quickstep/res/values-en-rCA/strings.xml +++ b/quickstep/res/values-en-rCA/strings.xml @@ -82,7 +82,7 @@ "Split" "Tap another app to use split-screen" "App does not support split-screen." - "This action isn\'t allowed by the app or your organisation" + "This action isn\'t allowed by the app or your organization" "Skip navigation tutorial?" "You can find this later in the %1$s app" "Cancel" diff --git a/quickstep/res/values-mk/strings.xml b/quickstep/res/values-mk/strings.xml index 840c246c95..b7ecfbcde2 100644 --- a/quickstep/res/values-mk/strings.xml +++ b/quickstep/res/values-mk/strings.xml @@ -93,7 +93,7 @@ "Префрлувајте се меѓу апликации преку лентата за задачи" "Повлечете кон страната за да користите две апликации одеднаш" "Допрете и задржете за да се сокрие лентата за задачи" - "Следна" + "Следно" "Назад" "Затвори" "Готово" From 965bcbd3b84b299549439b4cb801f06d476911af Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Sun, 19 Jun 2022 09:03:01 -0700 Subject: [PATCH 3/6] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: Iba21dae2b3170079b5e7a9b7324b6c68c073a722 --- quickstep/res/values-en-rCA/strings.xml | 2 +- quickstep/res/values-mk/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/res/values-en-rCA/strings.xml b/quickstep/res/values-en-rCA/strings.xml index 7b297af793..4013a7193b 100644 --- a/quickstep/res/values-en-rCA/strings.xml +++ b/quickstep/res/values-en-rCA/strings.xml @@ -86,7 +86,7 @@ "Split" "Tap another app to use split-screen" "App does not support split-screen." - "This action isn\'t allowed by the app or your organisation" + "This action isn\'t allowed by the app or your organization" "Skip navigation tutorial?" "You can find this later in the %1$s app" "Cancel" diff --git a/quickstep/res/values-mk/strings.xml b/quickstep/res/values-mk/strings.xml index a206a492a4..75f093316e 100644 --- a/quickstep/res/values-mk/strings.xml +++ b/quickstep/res/values-mk/strings.xml @@ -97,7 +97,7 @@ "Префрлувајте се меѓу апликации преку лентата за задачи" "Повлечете кон страната за да користите две апликации одеднаш" "Допрете и задржете за да се сокрие лентата за задачи" - "Следна" + "Следно" "Назад" "Затвори" "Готово" From fa9f6501e9d188d9f22c66606c64bfe77b906ccd Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Sun, 19 Jun 2022 09:03:48 -0700 Subject: [PATCH 4/6] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: I010fafdf9fc78b15763a183684aa0ab77ee66281 --- quickstep/res/values-en-rCA/strings.xml | 2 +- quickstep/res/values-mk/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/res/values-en-rCA/strings.xml b/quickstep/res/values-en-rCA/strings.xml index 7b297af793..4013a7193b 100644 --- a/quickstep/res/values-en-rCA/strings.xml +++ b/quickstep/res/values-en-rCA/strings.xml @@ -86,7 +86,7 @@ "Split" "Tap another app to use split-screen" "App does not support split-screen." - "This action isn\'t allowed by the app or your organisation" + "This action isn\'t allowed by the app or your organization" "Skip navigation tutorial?" "You can find this later in the %1$s app" "Cancel" diff --git a/quickstep/res/values-mk/strings.xml b/quickstep/res/values-mk/strings.xml index a206a492a4..75f093316e 100644 --- a/quickstep/res/values-mk/strings.xml +++ b/quickstep/res/values-mk/strings.xml @@ -97,7 +97,7 @@ "Префрлувајте се меѓу апликации преку лентата за задачи" "Повлечете кон страната за да користите две апликации одеднаш" "Допрете и задржете за да се сокрие лентата за задачи" - "Следна" + "Следно" "Назад" "Затвори" "Готово" From cba7d722c40d37a11cb35e0fb52c5cfd2fb67135 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Sun, 19 Jun 2022 09:04:33 -0700 Subject: [PATCH 5/6] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: Ibf3c81237de9f9fe20f590d01483dc9283313fb6 --- quickstep/res/values-en-rCA/strings.xml | 2 +- quickstep/res/values-mk/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/res/values-en-rCA/strings.xml b/quickstep/res/values-en-rCA/strings.xml index 7b297af793..4013a7193b 100644 --- a/quickstep/res/values-en-rCA/strings.xml +++ b/quickstep/res/values-en-rCA/strings.xml @@ -86,7 +86,7 @@ "Split" "Tap another app to use split-screen" "App does not support split-screen." - "This action isn\'t allowed by the app or your organisation" + "This action isn\'t allowed by the app or your organization" "Skip navigation tutorial?" "You can find this later in the %1$s app" "Cancel" diff --git a/quickstep/res/values-mk/strings.xml b/quickstep/res/values-mk/strings.xml index a206a492a4..75f093316e 100644 --- a/quickstep/res/values-mk/strings.xml +++ b/quickstep/res/values-mk/strings.xml @@ -97,7 +97,7 @@ "Префрлувајте се меѓу апликации преку лентата за задачи" "Повлечете кон страната за да користите две апликации одеднаш" "Допрете и задржете за да се сокрие лентата за задачи" - "Следна" + "Следно" "Назад" "Затвори" "Готово" From 9f3de2bbb2845cb4470c41bae5dc89f81ea55a69 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Sun, 19 Jun 2022 09:05:18 -0700 Subject: [PATCH 6/6] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: I3fa536c9f10b1648155ed3ef01cfb5d95e20fb34 --- quickstep/res/values-en-rCA/strings.xml | 2 +- quickstep/res/values-mk/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/res/values-en-rCA/strings.xml b/quickstep/res/values-en-rCA/strings.xml index 7b297af793..4013a7193b 100644 --- a/quickstep/res/values-en-rCA/strings.xml +++ b/quickstep/res/values-en-rCA/strings.xml @@ -86,7 +86,7 @@ "Split" "Tap another app to use split-screen" "App does not support split-screen." - "This action isn\'t allowed by the app or your organisation" + "This action isn\'t allowed by the app or your organization" "Skip navigation tutorial?" "You can find this later in the %1$s app" "Cancel" diff --git a/quickstep/res/values-mk/strings.xml b/quickstep/res/values-mk/strings.xml index a206a492a4..75f093316e 100644 --- a/quickstep/res/values-mk/strings.xml +++ b/quickstep/res/values-mk/strings.xml @@ -97,7 +97,7 @@ "Префрлувајте се меѓу апликации преку лентата за задачи" "Повлечете кон страната за да користите две апликации одеднаш" "Допрете и задржете за да се сокрие лентата за задачи" - "Следна" + "Следно" "Назад" "Затвори" "Готово"