App shortcut overlapping app icon when selecting the app using USB mouse

Test: Manual
Bug:113287687
Change-Id: Ib02c736a312937a9b71d5168d965446b6fc5b7b7
This commit is contained in:
Samuel Fufa 2019-08-28 17:06:51 -07:00
parent 19b15701ce
commit 9fd21056c7
1 changed files with 4 additions and 0 deletions

View File

@ -1289,6 +1289,10 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) {
switch (event.getAction()) {
case MotionEvent.ACTION_SCROLL: {
Launcher launcher = Launcher.getLauncher(getContext());
if (launcher != null) {
AbstractFloatingView.closeAllOpenViews(launcher);
}
// Handle mouse (or ext. device) by shifting the page depending on the scroll
final float vscroll;
final float hscroll;