From af5b4cb27709e2e3d6c419e81ac87363e701ce5d Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 8 Dec 2009 17:51:22 -0800 Subject: [PATCH] Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left --- src/com/android/launcher2/AllAppsView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 9e22231947..0c45075c77 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;