Show and hide taskbar tooltips immediately.
Fix: 356352494 Test: TaskbarHoverToolTipControllerTest Flag: EXEMPT bugfix Change-Id: Ie7dc1f341cf059bb38f61fa185152cb2555e36b1
This commit is contained in:
1 parent
3ed6885901
commit
b488c88fa3
4 files changed
+21
-74
No files matched your search
@@ -25,6 +25,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL;
|
||||
import static android.window.SplashScreen.SPLASH_SCREEN_STYLE_UNDEFINED;
|
||||
|
||||
import static com.android.launcher3.AbstractFloatingView.TYPE_ALL;
|
||||
import static com.android.launcher3.AbstractFloatingView.TYPE_ON_BOARD_POPUP;
|
||||
import static com.android.launcher3.AbstractFloatingView.TYPE_REBIND_SAFE;
|
||||
import static com.android.launcher3.AbstractFloatingView.TYPE_TASKBAR_OVERLAY_PROXY;
|
||||
import static com.android.launcher3.Flags.enableCursorHoverStates;
|
||||
@@ -1514,6 +1515,12 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
itemView.setHapticFeedbackEnabled(true);
|
||||
return false;
|
||||
});
|
||||
|
||||
// Close any open taskbar tooltips.
|
||||
if (AbstractFloatingView.hasOpenView(this, TYPE_ON_BOARD_POPUP)) {
|
||||
AbstractFloatingView.getOpenView(this, TYPE_ON_BOARD_POPUP)
|
||||
.close(/* animate= */ false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user