summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/AddBookmarkPage.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-05-17 11:12:04 -0700
committerJohn Reck <jreck@google.com>2011-05-17 11:12:04 -0700
commit30b0e3eb03104ca27c7bcd84e3199644ef43ca49 (patch)
tree17d53204ae4707efff7452588244676a6255347e /src/com/android/browser/AddBookmarkPage.java
parent16cb1687726f9b66751d662623932c124ca27b4e (diff)
downloadpackages_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.java17
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 };
}
/**