Fix All set activity not drawing on initial swipe. am: 4d18da78c0 am: 3a126d78a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18930603 Change-Id: Ie74ad15bc52082615cabced4f86c33e69de9560c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
dfadafe45b
@@ -151,6 +151,8 @@ public class TouchInteractionService extends Service
|
|||||||
*/
|
*/
|
||||||
public class TISBinder extends IOverviewProxy.Stub {
|
public class TISBinder extends IOverviewProxy.Stub {
|
||||||
|
|
||||||
|
@Nullable private Runnable mOnOverviewTargetChangeListener = null;
|
||||||
|
|
||||||
@BinderThread
|
@BinderThread
|
||||||
public void onInitialize(Bundle bundle) {
|
public void onInitialize(Bundle bundle) {
|
||||||
ISystemUiProxy proxy = ISystemUiProxy.Stub.asInterface(
|
ISystemUiProxy proxy = ISystemUiProxy.Stub.asInterface(
|
||||||
@@ -331,6 +333,18 @@ public class TouchInteractionService extends Service
|
|||||||
public void setGestureBlockedTaskId(int taskId) {
|
public void setGestureBlockedTaskId(int taskId) {
|
||||||
mDeviceState.setGestureBlockingTaskId(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;
|
private static boolean sConnected = false;
|
||||||
@@ -491,6 +505,7 @@ public class TouchInteractionService extends Service
|
|||||||
if (newOverviewActivity != null) {
|
if (newOverviewActivity != null) {
|
||||||
mTaskbarManager.setActivity(newOverviewActivity);
|
mTaskbarManager.setActivity(newOverviewActivity);
|
||||||
}
|
}
|
||||||
|
mTISBinder.onOverviewTargetChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
@UiThread
|
@UiThread
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ public class AllSetActivity extends Activity {
|
|||||||
mBinder = binder;
|
mBinder = binder;
|
||||||
mBinder.getTaskbarManager().setSetupUIVisible(isResumed());
|
mBinder.getTaskbarManager().setSetupUIVisible(isResumed());
|
||||||
mBinder.setSwipeUpProxy(isResumed() ? this::createSwipeUpProxy : null);
|
mBinder.setSwipeUpProxy(isResumed() ? this::createSwipeUpProxy : null);
|
||||||
|
mBinder.setOverviewTargetChangeListener(mBinder::preloadOverviewForSUWAllSet);
|
||||||
mBinder.preloadOverviewForSUWAllSet();
|
mBinder.preloadOverviewForSUWAllSet();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -224,6 +225,7 @@ public class AllSetActivity extends Activity {
|
|||||||
if (mBinder != null) {
|
if (mBinder != null) {
|
||||||
mBinder.getTaskbarManager().setSetupUIVisible(false);
|
mBinder.getTaskbarManager().setSetupUIVisible(false);
|
||||||
mBinder.setSwipeUpProxy(null);
|
mBinder.setSwipeUpProxy(null);
|
||||||
|
mBinder.setOverviewTargetChangeListener(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user