From 3ad8d5cf0911ba015e019bc75e8fb13c091efe0e Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 23 Apr 2012 14:50:09 -0700 Subject: Bookmark page changes Bug: 6372933 Fix a race condition between update & destroy Fix update path Add some extra debug support Change-Id: I66a450e175b22d992de97d5bc24200961144412a --- src/com/android/browser/preferences/DebugPreferencesFragment.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/android/browser/preferences') diff --git a/src/com/android/browser/preferences/DebugPreferencesFragment.java b/src/com/android/browser/preferences/DebugPreferencesFragment.java index 24821d1..80347bd 100644 --- a/src/com/android/browser/preferences/DebugPreferencesFragment.java +++ b/src/com/android/browser/preferences/DebugPreferencesFragment.java @@ -25,6 +25,7 @@ import com.android.browser.BrowserSettings; import com.android.browser.GoogleAccountLogin; import com.android.browser.PreferenceKeys; import com.android.browser.R; +import com.android.browser.provider.BrowserProvider2; public class DebugPreferencesFragment extends PreferenceFragment implements OnPreferenceClickListener { @@ -37,6 +38,8 @@ public class DebugPreferencesFragment extends PreferenceFragment Preference e = findPreference(PreferenceKeys.PREF_RESET_PRELOGIN); e.setOnPreferenceClickListener(this); + e = findPreference(PreferenceKeys.PREF_ADD_BOOKMARKS); + e.setOnPreferenceClickListener(this); } @Override @@ -47,6 +50,11 @@ public class DebugPreferencesFragment extends PreferenceFragment .apply(); return true; } + if (PreferenceKeys.PREF_ADD_BOOKMARKS.equals(preference.getKey())) { + getActivity().getContentResolver().insert( + BrowserProvider2.DEBUG_ADD_BOOKMARKS_URI, null); + return true; + } return false; } } -- cgit v1.1