diff options
author | John Reck <jreck@google.com> | 2011-01-21 11:50:20 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-21 11:50:20 -0800 |
commit | 3a6e2aefac6965d9495d0d594fade774ebd6b136 (patch) | |
tree | a89b6a02807b694bd97312a0913a16436204ccad /src/com/android/browser/BrowserHistoryPage.java | |
parent | 956f1f2da9635878cdaeda3794ff1b41ed4bdcf9 (diff) | |
parent | 3f7efde1a112ecfb5e008dbd583837056c2ad8ef (diff) | |
download | packages_apps_Browser-3a6e2aefac6965d9495d0d594fade774ebd6b136.zip packages_apps_Browser-3a6e2aefac6965d9495d0d594fade774ebd6b136.tar.gz packages_apps_Browser-3a6e2aefac6965d9495d0d594fade774ebd6b136.tar.bz2 |
Merge "Add selected background to history groups" into honeycomb
Diffstat (limited to 'src/com/android/browser/BrowserHistoryPage.java')
-rw-r--r-- | src/com/android/browser/BrowserHistoryPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index 44c26ec..66abd9a 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -54,6 +54,7 @@ import android.view.View; import android.view.ViewGroup; import android.view.ViewStub; import android.webkit.WebIconDatabase.IconListener; +import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.AdapterView.OnItemClickListener; @@ -245,6 +246,7 @@ public class BrowserHistoryPage extends Fragment mAdapter = new HistoryAdapter(getActivity()); mGroupList.setAdapter(new HistoryGroupWrapper(mAdapter)); mGroupList.setOnItemClickListener(mGroupItemClickListener); + mGroupList.setChoiceMode(AbsListView.CHOICE_MODE_SINGLE); mChildWrapper = new HistoryChildWrapper(mAdapter); mChildList = new ListView(getActivity()); mChildList.setAdapter(mChildWrapper); @@ -269,6 +271,7 @@ public class BrowserHistoryPage extends Fragment CharSequence title = ((TextView) view).getText(); mFragmentBreadCrumbs.setTitle(title, title); mChildWrapper.setSelectedGroup(position); + mGroupList.setItemChecked(position, true); } }; |