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:
Winson Chung
2012-03-29 11:13:23 -07:00
committed by Android (Google) Code Review
+2 -1
View File
@@ -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)) {