12/ Clean up some ActivityInterface calls
- Require users of the activity interface to go through the interface to get the raw activity - Remove calls that pass in the activity since the interface already can get the reference to it internally (and the interface always has the reference before the caller) Bug: 141886704 Change-Id: I13e52caba593db918e8a7764c751044142fe7ece Signed-off-by: Winson Chung <winsonc@google.com>
This commit is contained in:
@@ -239,10 +239,10 @@ public abstract class BaseSwipeUpHandler<T extends BaseDraggingActivity, Q exten
|
||||
success -> {
|
||||
resultCallback.accept(success);
|
||||
if (!success) {
|
||||
mActivityInterface.onLaunchTaskFailed(mActivity);
|
||||
mActivityInterface.onLaunchTaskFailed();
|
||||
nextTask.notifyTaskLaunchFailed(TAG);
|
||||
} else {
|
||||
mActivityInterface.onLaunchTaskSuccess(mActivity);
|
||||
mActivityInterface.onLaunchTaskSuccess();
|
||||
}
|
||||
}, MAIN_EXECUTOR.getHandler());
|
||||
}
|
||||
@@ -359,7 +359,7 @@ public abstract class BaseSwipeUpHandler<T extends BaseDraggingActivity, Q exten
|
||||
*/
|
||||
protected abstract boolean moveWindowWithRecentsScroll();
|
||||
|
||||
protected abstract boolean onActivityInit(final T activity, Boolean alreadyOnHome);
|
||||
protected abstract boolean onActivityInit(Boolean alreadyOnHome);
|
||||
|
||||
/**
|
||||
* Called to create a input proxy for the running task
|
||||
|
||||
Reference in New Issue
Block a user