summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2013-04-08 14:37:01 -0700
committerMichael Wright <michaelwr@google.com>2013-04-08 14:40:12 -0700
commitb482a001f117d0da3599475a293da736fccd4d2c (patch)
treeeb5e4f663f0fc3ce1ff6fe7cdc217ace356c67bb /core/java/android/widget
parent9e176c8b0e0770598469f4580e54ab1e47a06fe8 (diff)
downloadframeworks_base-b482a001f117d0da3599475a293da736fccd4d2c.zip
frameworks_base-b482a001f117d0da3599475a293da736fccd4d2c.tar.gz
frameworks_base-b482a001f117d0da3599475a293da736fccd4d2c.tar.bz2
Fix off by one in ListView's upward focus traversal
Bug: 7985315 Change-Id: Ic67c8e346d6b51a5cfb05cc7d0c2b145b591b2db
Diffstat (limited to 'core/java/android/widget')
-rw-r--r--core/java/android/widget/ListView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java
index 4b62c2d..c7914f3 100644
--- a/core/java/android/widget/ListView.java
+++ b/core/java/android/widget/ListView.java
@@ -2433,7 +2433,7 @@ public class ListView extends AbsListView {
mFirstPosition;
} else {
final int lastPos = mFirstPosition + getChildCount() - 1;
- nextSelected = selectedPos != INVALID_POSITION && selectedPos < lastPos?
+ nextSelected = selectedPos != INVALID_POSITION && selectedPos <= lastPos ?
selectedPos - 1 :
lastPos;
}