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 @@ "Префрлувајте се меѓу апликации преку лентата за задачи" "Повлечете кон страната за да користите две апликации одеднаш" "Допрете и задржете за да се сокрие лентата за задачи" - "Следна" + "Следно" "Назад" "Затвори" "Готово" diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 417473fb02..bf1c998f4a 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -151,6 +151,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( @@ -331,6 +333,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; @@ -491,6 +505,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 66ed0561fd..aa527890f9 100644 --- a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java +++ b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java @@ -208,6 +208,7 @@ public class AllSetActivity extends Activity { mBinder = binder; mBinder.getTaskbarManager().setSetupUIVisible(isResumed()); mBinder.setSwipeUpProxy(isResumed() ? this::createSwipeUpProxy : null); + mBinder.setOverviewTargetChangeListener(mBinder::preloadOverviewForSUWAllSet); mBinder.preloadOverviewForSUWAllSet(); } @@ -224,6 +225,7 @@ public class AllSetActivity extends Activity { if (mBinder != null) { mBinder.getTaskbarManager().setSetupUIVisible(false); mBinder.setSwipeUpProxy(null); + mBinder.setOverviewTargetChangeListener(null); } }