diff options
author | Joe Onorato <joeo@android.com> | 2010-02-01 18:36:43 -0500 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-02-01 18:36:43 -0500 |
commit | e9a3f3d85bf62d356c603f0c47f9ea7f45efa21f (patch) | |
tree | 0ebec021f7e6bc21e75b763d670063d9df58155a /src/com/android/launcher2/AllAppsView.java | |
parent | 2d7e7d0d4826850c8983f001ce706d802282b0f3 (diff) | |
download | android_packages_apps_Trebuchet-e9a3f3d85bf62d356c603f0c47f9ea7f45efa21f.tar.gz android_packages_apps_Trebuchet-e9a3f3d85bf62d356c603f0c47f9ea7f45efa21f.tar.bz2 android_packages_apps_Trebuchet-e9a3f3d85bf62d356c603f0c47f9ea7f45efa21f.zip |
Fix 2379378 Trackball up on all apps home icon doesn't highlight the correct icon
Diffstat (limited to 'src/com/android/launcher2/AllAppsView.java')
-rw-r--r-- | src/com/android/launcher2/AllAppsView.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 999844d1e..44b18ffe4 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -413,15 +413,19 @@ public class AllAppsView extends RSSurfaceView break; } case KeyEvent.KEYCODE_DPAD_LEFT: - if (currentPageCol > 0) { - newSelection = currentSelection - 1; + if (mLastSelection != SELECTION_HOME) { + if (currentPageCol > 0) { + newSelection = currentSelection - 1; + } } handled = true; break; case KeyEvent.KEYCODE_DPAD_RIGHT: - if ((currentPageCol < Defines.COLUMNS_PER_PAGE - 1) && - (currentSelection < iconCount - 1)) { - newSelection = currentSelection + 1; + if (mLastSelection != SELECTION_HOME) { + if ((currentPageCol < Defines.COLUMNS_PER_PAGE - 1) && + (currentSelection < iconCount - 1)) { + newSelection = currentSelection + 1; + } } handled = true; break; |