summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserHistoryPage.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-01-21 10:28:32 -0800
committerJohn Reck <jreck@google.com>2011-01-21 10:28:32 -0800
commit3f7efde1a112ecfb5e008dbd583837056c2ad8ef (patch)
treea7736c8fe4a2e395a703b362cb258c86bb3c3a27 /src/com/android/browser/BrowserHistoryPage.java
parentee804cd408ebbaa75b8832784934531520e455e8 (diff)
downloadpackages_apps_Browser-3f7efde1a112ecfb5e008dbd583837056c2ad8ef.zip
packages_apps_Browser-3f7efde1a112ecfb5e008dbd583837056c2ad8ef.tar.gz
packages_apps_Browser-3f7efde1a112ecfb5e008dbd583837056c2ad8ef.tar.bz2
Add selected background to history groups
Bug: 3370856 Change-Id: Iac6436279e1e3a5c91e2c9637b66bbcb74e3d265
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 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);
}
};