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:
commit
1cd2f1130b
1 file changed
+2
-1
@@ -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