OSDN Git Service

Fixing screen jumps when performing DnD in rtl mode
authorSunny Goyal <sunnygoyal@google.com>
Thu, 28 May 2015 17:06:43 +0000 (10:06 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Fri, 29 May 2015 22:02:30 +0000 (15:02 -0700)
Bug: 21445825
Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d

src/com/android/launcher3/Workspace.java

index c0a1cfc..e8f9c58 100644 (file)
@@ -731,6 +731,7 @@ public class Workspace extends PagedView
                 fadeAndRemoveEmptyScreen(SNAP_OFF_EMPTY_SCREEN_DURATION, FADE_EMPTY_SCREEN_DURATION,
                         onComplete, stripEmptyScreens);
             } else {
+                snapToPage(getNextPage(), 0);
                 fadeAndRemoveEmptyScreen(0, FADE_EMPTY_SCREEN_DURATION,
                         onComplete, stripEmptyScreens);
             }