diff options
author | John Reck <jreck@google.com> | 2012-04-23 14:50:09 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-04-23 17:57:54 -0700 |
commit | 3ad8d5cf0911ba015e019bc75e8fb13c091efe0e (patch) | |
tree | d5effce7657453109ca3ec4b9be83bc4bf4441e9 /src/com/android/browser/preferences | |
parent | d6207eee8f87bbbfbc57bb4674b29e80c92e9d3b (diff) | |
download | packages_apps_Browser-3ad8d5cf0911ba015e019bc75e8fb13c091efe0e.zip packages_apps_Browser-3ad8d5cf0911ba015e019bc75e8fb13c091efe0e.tar.gz packages_apps_Browser-3ad8d5cf0911ba015e019bc75e8fb13c091efe0e.tar.bz2 |
Bookmark page changes
Bug: 6372933
Fix a race condition between update & destroy
Fix update path
Add some extra debug support
Change-Id: I66a450e175b22d992de97d5bc24200961144412a
Diffstat (limited to 'src/com/android/browser/preferences')
-rw-r--r-- | src/com/android/browser/preferences/DebugPreferencesFragment.java | 8 |
1 files changed, 8 insertions, 0 deletions
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; } } |