Merge "Fixing issue where you can't hover over the right edge to snap to next page in landscape phone UI (Bug. 6240612)"
This commit is contained in:
@@ -3411,7 +3411,8 @@ public class Workspace extends SmoothPagedView
|
||||
@Override
|
||||
public boolean onEnterScrollArea(int x, int y, int direction) {
|
||||
// Ignore the scroll area if we are dragging over the hot seat
|
||||
if (mLauncher.getHotseat() != null) {
|
||||
boolean isPortrait = !LauncherApplication.isScreenLandscape(getContext());
|
||||
if (mLauncher.getHotseat() != null && isPortrait) {
|
||||
Rect r = new Rect();
|
||||
mLauncher.getHotseat().getHitRect(r);
|
||||
if (r.contains(x, y)) {
|
||||
|
||||
Reference in New Issue
Block a user