summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2010-12-06 11:50:55 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-06 11:50:55 -0800
commita755c61400e995ab059ecd1d40a2f2b32b4370ed (patch)
tree8018beb584fcc252f953a18ec79531177e9bfc37 /src
parent41861f76bcdb21104f4a43f2a9f674fc7dfac5b2 (diff)
parentf573cb6bf7726b0eddff3907f58c61e372797e0c (diff)
downloadpackages_apps_Browser-a755c61400e995ab059ecd1d40a2f2b32b4370ed.zip
packages_apps_Browser-a755c61400e995ab059ecd1d40a2f2b32b4370ed.tar.gz
packages_apps_Browser-a755c61400e995ab059ecd1d40a2f2b32b4370ed.tar.bz2
Merge "Fixed strict mode violation in history"
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/BrowserHistoryPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java
index 5cd9545..2fdfedd 100644
--- a/src/com/android/browser/BrowserHistoryPage.java
+++ b/src/com/android/browser/BrowserHistoryPage.java
@@ -214,7 +214,7 @@ public class BrowserHistoryPage extends Fragment
@Override
public void onPrepareOptionsMenu(Menu menu) {
menu.findItem(R.id.clear_history_menu_id).setVisible(
- Browser.canClearHistory(getActivity().getContentResolver()));
+ mAdapter != null && !mAdapter.isEmpty());
}
@Override