OSDN Git Service

Fixes #1876911
authorRomain Guy <romainguy@android.com>
Mon, 1 Jun 2009 23:11:41 +0000 (16:11 -0700)
committerRomain Guy <romainguy@android.com>
Mon, 1 Jun 2009 23:24:00 +0000 (16:24 -0700)
Moving the trackball up or down on a screen in Home could send the focus
to the left/right, which can be confusing. This issue was introduced by
a change in the way addFocusables() work and Home did not respect the
new behavior.

src/com/android/launcher/Workspace.java

index e4d2560..d91519c 100644 (file)
@@ -635,7 +635,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
     }
 
     @Override
-    public void addFocusables(ArrayList<View> views, int direction) {
+    public void addFocusables(ArrayList<View> views, int direction, int focusableMode) {
         if (mLauncher.isDrawerDown()) {
             final Folder openFolder = getOpenFolder();
             if (openFolder == null) {