App shortcut overlapping app icon when selecting the app using USB mouse
Test: Manual Bug:113287687 Change-Id: Ib02c736a312937a9b71d5168d965446b6fc5b7b7
This commit is contained in:
parent
19b15701ce
commit
9fd21056c7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue