Merge "Revert to passing mIsStashed to StashedHandleViewController again" into main
This commit is contained in:
commit
7eceb5b101
2 files changed
+8
-7
No files matched your search
@@ -155,7 +155,7 @@ public class StashedHandleViewController implements TaskbarControllers.LoggableT
|
||||
});
|
||||
initRegionSampler();
|
||||
if (mActivity.isPhoneGestureNavMode()) {
|
||||
onIsStashedChanged();
|
||||
onIsStashedChanged(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,8 +238,8 @@ public class StashedHandleViewController implements TaskbarControllers.LoggableT
|
||||
}
|
||||
|
||||
/** Called when taskbar is stashed or unstashed. */
|
||||
public void onIsStashedChanged() {
|
||||
mIsStashed = isStashedHandleVisible();
|
||||
public void onIsStashedChanged(boolean isStashed) {
|
||||
mIsStashed = isStashed;
|
||||
updateSamplingState();
|
||||
}
|
||||
|
||||
|
||||
@@ -590,7 +590,7 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
mAnimator.addListener(AnimatorListeners.forEndCallback(() -> {
|
||||
mAnimator = null;
|
||||
mIsStashed = isStashed;
|
||||
onIsStashedChanged();
|
||||
onIsStashedChanged(mIsStashed);
|
||||
}));
|
||||
return;
|
||||
}
|
||||
@@ -605,7 +605,7 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
@Override
|
||||
public void onAnimationStart(Animator animation) {
|
||||
mIsStashed = isStashed;
|
||||
onIsStashedChanged();
|
||||
onIsStashedChanged(mIsStashed);
|
||||
|
||||
cancelTimeoutIfExists();
|
||||
}
|
||||
@@ -830,9 +830,10 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
.setDuration(TASKBAR_HINT_STASH_DURATION).start();
|
||||
}
|
||||
|
||||
private void onIsStashedChanged() {
|
||||
private void onIsStashedChanged(boolean isStashed) {
|
||||
mControllers.runAfterInit(() -> {
|
||||
mControllers.stashedHandleViewController.onIsStashedChanged();
|
||||
mControllers.stashedHandleViewController.onIsStashedChanged(
|
||||
isStashed && supportsVisualStashing());
|
||||
mControllers.taskbarInsetsController.onTaskbarOrBubblebarWindowHeightOrInsetsChanged();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user