diff options
author | Dave Burke <daveburke@google.com> | 2011-02-08 00:11:35 -0800 |
---|---|---|
committer | android-merger <android-build@android.com> | 2011-02-08 00:40:24 -0800 |
commit | 3ef1906465a9320b8c1bc57f948f64f315ff79b4 (patch) | |
tree | c332a35dc1309949f90c4d4fb1b7a30abe2e7bd3 | |
parent | b7502832c6f8c36e0fbf1f12ca0caf6bde878b7b (diff) | |
download | packages_apps_Browser-3ef1906465a9320b8c1bc57f948f64f315ff79b4.zip packages_apps_Browser-3ef1906465a9320b8c1bc57f948f64f315ff79b4.tar.gz packages_apps_Browser-3ef1906465a9320b8c1bc57f948f64f315ff79b4.tar.bz2 |
Fix ISE in History page (DO NOT MERGE)
Corresponding change in master was https://android-git.corp.google.com/g/#change,95446
Bug: 3427773
Change-Id: Iaa7a5620285797cd6d3e15e9f5e058ca553a5951
-rw-r--r-- | src/com/android/browser/BrowserHistoryPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index 777cfd4..44f358d 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -187,7 +187,8 @@ public class BrowserHistoryPage extends Fragment switch (loader.getId()) { case LOADER_HISTORY: { mAdapter.changeCursor(data); - if (mGroupList.getCheckedItemPosition() == ListView.INVALID_POSITION) { + if (!mAdapter.isEmpty() + && mGroupList.getCheckedItemPosition() == ListView.INVALID_POSITION) { selectGroup(0); } |