diff options
author | John Reck <jreck@google.com> | 2011-05-17 11:12:04 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-05-17 11:12:04 -0700 |
commit | 30b0e3eb03104ca27c7bcd84e3199644ef43ca49 (patch) | |
tree | 17d53204ae4707efff7452588244676a6255347e /src/com/android/browser/AddBookmarkPage.java | |
parent | 16cb1687726f9b66751d662623932c124ca27b4e (diff) | |
download | packages_apps_Browser-30b0e3eb03104ca27c7bcd84e3199644ef43ca49.zip packages_apps_Browser-30b0e3eb03104ca27c7bcd84e3199644ef43ca49.tar.gz packages_apps_Browser-30b0e3eb03104ca27c7bcd84e3199644ef43ca49.tar.bz2 |
Add provider support for moving between accounts
Fix the provider to correctly handle the case where a bookmark
is re-parented to a new account
Change-Id: I3c4412cfe2fc73bbb7209cbd85b0b8e5249982c6
Diffstat (limited to 'src/com/android/browser/AddBookmarkPage.java')
-rw-r--r-- | src/com/android/browser/AddBookmarkPage.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index b8fe45e..a9e5f52 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -341,11 +341,6 @@ public class AddBookmarkPage extends Activity values.put(BrowserContract.Bookmarks.TITLE, name); values.put(BrowserContract.Bookmarks.IS_FOLDER, 1); - String[] accountInfo = getAccountNameAndType(); - if (accountInfo != null) { - values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountInfo[1]); - values.put(BrowserContract.Bookmarks.ACCOUNT_NAME, accountInfo[0]); - } long currentFolder; Object data = mCrumbs.getTopData(); if (data != null) { @@ -737,18 +732,6 @@ public class AddBookmarkPage extends Activity } // Find the contents of the current folder manager.restartLoader(LOADER_ID_FOLDER_CONTENTS, null, this); -} - /** - * Get the account name and type of the currently synced account. - * @return null if no account name or type. Otherwise, the result will be - * an array of two Strings, the accountName and accountType, respectively. - */ - private String[] getAccountNameAndType() { - BookmarkAccount account = (BookmarkAccount) mAccountSpinner.getSelectedItem(); - if (account == null) { - return null; - } - return new String[] { account.accountName, account.accountType }; } /** |