Fixing issue where you can't hover over the right edge to snap to next page in landscape phone UI (Bug. 6240612)
Change-Id: I5fcde8c51eaf0a8944799d19f35d67ebe614297d
This commit is contained in:
1 parent
4b57851287
commit
10bfc6e929
1 file changed
+2
-1
@@ -3409,7 +3409,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