Merge "Clear back callback in SystemUiProxy." into tm-dev
This commit is contained in:
commit
b6ff87bb99
1 file changed
+5
-4
@@ -99,7 +99,7 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
|
|||||||
private ILauncherUnlockAnimationController mPendingLauncherUnlockAnimationController;
|
private ILauncherUnlockAnimationController mPendingLauncherUnlockAnimationController;
|
||||||
private IRecentTasksListener mRecentTasksListener;
|
private IRecentTasksListener mRecentTasksListener;
|
||||||
private final ArrayList<RemoteTransitionCompat> mRemoteTransitions = new ArrayList<>();
|
private final ArrayList<RemoteTransitionCompat> mRemoteTransitions = new ArrayList<>();
|
||||||
private IOnBackInvokedCallback mBackToLaunchCallback;
|
private IOnBackInvokedCallback mBackToLauncherCallback;
|
||||||
|
|
||||||
// Used to dedupe calls to SystemUI
|
// Used to dedupe calls to SystemUI
|
||||||
private int mLastShelfHeight;
|
private int mLastShelfHeight;
|
||||||
@@ -200,8 +200,8 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
|
|||||||
if (mRecentTasksListener != null && mRecentTasks != null) {
|
if (mRecentTasksListener != null && mRecentTasks != null) {
|
||||||
registerRecentTasksListener(mRecentTasksListener);
|
registerRecentTasksListener(mRecentTasksListener);
|
||||||
}
|
}
|
||||||
if (mBackAnimation != null && mBackToLaunchCallback != null) {
|
if (mBackAnimation != null && mBackToLauncherCallback != null) {
|
||||||
setBackToLauncherCallback(mBackToLaunchCallback);
|
setBackToLauncherCallback(mBackToLauncherCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mPendingSetNavButtonAlpha != null) {
|
if (mPendingSetNavButtonAlpha != null) {
|
||||||
@@ -836,7 +836,7 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
|
|||||||
|
|
||||||
/** Sets the launcher {@link android.window.IOnBackInvokedCallback} to shell */
|
/** Sets the launcher {@link android.window.IOnBackInvokedCallback} to shell */
|
||||||
public void setBackToLauncherCallback(IOnBackInvokedCallback callback) {
|
public void setBackToLauncherCallback(IOnBackInvokedCallback callback) {
|
||||||
mBackToLaunchCallback = callback;
|
mBackToLauncherCallback = callback;
|
||||||
if (mBackAnimation == null) {
|
if (mBackAnimation == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -849,6 +849,7 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
|
|||||||
|
|
||||||
/** Clears the previously registered {@link IOnBackInvokedCallback}. */
|
/** Clears the previously registered {@link IOnBackInvokedCallback}. */
|
||||||
public void clearBackToLauncherCallback() {
|
public void clearBackToLauncherCallback() {
|
||||||
|
mBackToLauncherCallback = null;
|
||||||
if (mBackAnimation == null) {
|
if (mBackAnimation == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user