diff options
author | John Reck <jreck@google.com> | 2011-06-17 14:27:24 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-17 14:35:22 -0700 |
commit | 5a77537f31715ac32112f47a569eded13dce5f1b (patch) | |
tree | 2704ebce3c97259eba01ce4c9b41ba1097824eb4 /src/com/android/browser/provider | |
parent | 7dc444b4c3b70a09a33c0892fb8677922bdf1ecc (diff) | |
download | packages_apps_Browser-5a77537f31715ac32112f47a569eded13dce5f1b.zip packages_apps_Browser-5a77537f31715ac32112f47a569eded13dce5f1b.tar.gz packages_apps_Browser-5a77537f31715ac32112f47a569eded13dce5f1b.tar.bz2 |
Delete bookmarks when sync account is removed
Bug: 4686176
Change-Id: I1d05cc72e1cf65d04eb7def4a72a2f83420bd345
Diffstat (limited to 'src/com/android/browser/provider')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index 9f6e41c..936f131 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -17,6 +17,7 @@ package com.android.browser.provider; import android.accounts.Account; +import android.accounts.AccountManager; import android.app.SearchManager; import android.content.ContentResolver; import android.content.ContentUris; @@ -1582,6 +1583,12 @@ public class BrowserProvider2 extends SQLiteContentProvider { break; } + case ACCOUNTS: { + Account[] accounts = AccountManager.get(getContext()).getAccounts(); + mSyncHelper.onAccountsChanged(mDb, accounts); + break; + } + default: { throw new UnsupportedOperationException("Unknown update URI " + uri); } |