summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserHistoryPage.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-01-21 11:50:20 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-21 11:50:20 -0800
commit3a6e2aefac6965d9495d0d594fade774ebd6b136 (patch)
treea89b6a02807b694bd97312a0913a16436204ccad /src/com/android/browser/BrowserHistoryPage.java
parent956f1f2da9635878cdaeda3794ff1b41ed4bdcf9 (diff)
parent3f7efde1a112ecfb5e008dbd583837056c2ad8ef (diff)
downloadpackages_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.java3
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);
}
};