Fix the overflow button getting stuck in the dot position
The root cause was that there were other unaccounted code paths inside `KeyboardQuickSwitchViewController` that were causing the KQS view to be closed. The fix introduces a new `onCloseStarted` callback that is called before closing the KQS view. This allows to toggle the overflow button together with the KQS closing animation (in case it closes with animation). Bug: 379614917 Flag: com.android.launcher3.taskbar_overflow Test: manual, following steps in the bug Change-Id: I1868142c1cdba8111cb86c4c54e5b12b643732c5
This commit is contained in:
@@ -299,10 +299,6 @@ public final class KeyboardQuickSwitchController implements
|
||||
return;
|
||||
}
|
||||
mQuickSwitchViewController.closeQuickSwitchView(animate);
|
||||
if (mOnClosed != null) {
|
||||
mOnClosed.run();
|
||||
mOnClosed = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -394,6 +390,13 @@ public final class KeyboardQuickSwitchController implements
|
||||
});
|
||||
}
|
||||
|
||||
void onCloseStarted() {
|
||||
if (mOnClosed != null) {
|
||||
mOnClosed.run();
|
||||
mOnClosed = null;
|
||||
}
|
||||
}
|
||||
|
||||
void onCloseComplete() {
|
||||
if (Flags.taskbarOverflow() && mOverlayContext != null) {
|
||||
mOverlayContext.getDragLayer()
|
||||
|
||||
Reference in New Issue
Block a user