diff options
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 6ea2bff..67e3351 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); } }; |