am 31f8c994: am 5a7970b5: am af5b4cb2: Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left
Merge commit '31f8c994a34dbff4573d32dcc49eec75e7bb546d'
* commit '31f8c994a34dbff4573d32dcc49eec75e7bb546d':
Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 9e22231..0c45075 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -368,8 +368,8 @@
} 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;