summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllAppsView.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-12-08 17:51:22 -0800
committerJoe Onorato <joeo@android.com>2009-12-08 17:51:22 -0800
commitaf5b4cb27709e2e3d6c419e81ac87363e701ce5d (patch)
tree98b4a7dd85a043958b454636868512c320506bfc /src/com/android/launcher2/AllAppsView.java
parenta276fc59f535a2fb05701e8f49bb7adf4cefb3b2 (diff)
downloadandroid_packages_apps_Trebuchet-af5b4cb27709e2e3d6c419e81ac87363e701ce5d.tar.gz
android_packages_apps_Trebuchet-af5b4cb27709e2e3d6c419e81ac87363e701ce5d.tar.bz2
android_packages_apps_Trebuchet-af5b4cb27709e2e3d6c419e81ac87363e701ce5d.zip
Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left
Diffstat (limited to 'src/com/android/launcher2/AllAppsView.java')
-rw-r--r--src/com/android/launcher2/AllAppsView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 9e2223194..0c45075c7 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -368,8 +368,8 @@ public class AllAppsView extends RSSurfaceView
} else if (currentTopRow > 0) {
newSelection = currentSelection - Defines.COLUMNS_PER_PAGE;
mRollo.moveTo(newSelection / Defines.COLUMNS_PER_PAGE);
- } else {
- newSelection = Defines.COLUMNS_PER_PAGE * (Defines.ROWS_PER_PAGE-1);
+ } else if (currentPageRow != 0) {
+ newSelection = currentTopRow * Defines.ROWS_PER_PAGE;
}
}
handled = true;