diff options
author | John Reck <jreck@google.com> | 2011-06-13 09:16:24 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-13 09:16:24 -0700 |
commit | 27d0b8858752093b8e6cffec4073429b22444af3 (patch) | |
tree | a139b622884d3c95a02a5e71e4f4a0201e7cd158 /src/com/android/browser | |
parent | d6e90c1604de8da5ac0305762c61af39256be052 (diff) | |
parent | 3ffc5ca7cd5e79dec9f7d2bb83e6f909d826ff0d (diff) | |
download | packages_apps_Browser-27d0b8858752093b8e6cffec4073429b22444af3.zip packages_apps_Browser-27d0b8858752093b8e6cffec4073429b22444af3.tar.gz packages_apps_Browser-27d0b8858752093b8e6cffec4073429b22444af3.tar.bz2 |
Merge "Remove unused parameter"
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/BrowserBookmarksPage.java | 16 | ||||
-rw-r--r-- | src/com/android/browser/CombinedBookmarkHistoryView.java | 2 | ||||
-rw-r--r-- | src/com/android/browser/Controller.java | 6 | ||||
-rw-r--r-- | src/com/android/browser/TitleBarXLarge.java | 3 | ||||
-rw-r--r-- | src/com/android/browser/UiController.java | 2 |
5 files changed, 5 insertions, 24 deletions
diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index d4d1c0d..f92272f 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -170,22 +170,6 @@ public class BrowserBookmarksPage extends Fragment implements View.OnCreateConte // TODO: Figure out what to do here (if anything?) } - long getFolderId() { - LoaderManager manager = getLoaderManager(); - BookmarksLoader loader = - (BookmarksLoader) ((Loader<?>)manager.getLoader(LOADER_BOOKMARKS)); - - Uri uri = loader.getUri(); - if (uri != null) { - try { - return ContentUris.parseId(uri); - } catch (NumberFormatException nfx) { - return -1; - } - } - return -1; - } - @Override public boolean onContextItemSelected(MenuItem item) { BookmarkContextMenuInfo i = (BookmarkContextMenuInfo)item.getMenuInfo(); diff --git a/src/com/android/browser/CombinedBookmarkHistoryView.java b/src/com/android/browser/CombinedBookmarkHistoryView.java index 1fdc260..785b2cd 100644 --- a/src/com/android/browser/CombinedBookmarkHistoryView.java +++ b/src/com/android/browser/CombinedBookmarkHistoryView.java @@ -312,7 +312,7 @@ public class CombinedBookmarkHistoryView extends LinearLayout mUiController.onUrlSelected(settings.getHomePage(), false); return true; case R.id.add_bookmark: - mUiController.bookmarkCurrentPage(mBookmarks.getFolderId(), false); + mUiController.bookmarkCurrentPage(false); return true; case R.id.preferences_menu_id: Intent intent = new Intent(mActivity, BrowserPreferencesPage.class); diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 5fb413b..efd9012 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1554,7 +1554,7 @@ public class Controller break; case R.id.add_bookmark_menu_id: - bookmarkCurrentPage(AddBookmarkPage.DEFAULT_FOLDER_ID, false); + bookmarkCurrentPage(false); break; case R.id.stop_reload_menu_id: @@ -1906,7 +1906,7 @@ public class Controller * existing bookmark. */ @Override - public void bookmarkCurrentPage(long folderId, boolean canBeAnEdit) { + public void bookmarkCurrentPage(boolean canBeAnEdit) { Intent i = new Intent(mActivity, AddBookmarkPage.class); WebView w = getCurrentTopWebView(); @@ -1925,8 +1925,6 @@ public class Controller createScreenshot(w, getDesiredThumbnailWidth(mActivity), getDesiredThumbnailHeight(mActivity))); i.putExtra(BrowserContract.Bookmarks.FAVICON, w.getFavicon()); - i.putExtra(BrowserContract.Bookmarks.PARENT, - folderId); if (canBeAnEdit) { i.putExtra(AddBookmarkPage.CHECK_FOR_DUPE, true); } diff --git a/src/com/android/browser/TitleBarXLarge.java b/src/com/android/browser/TitleBarXLarge.java index 91709cc..69f6949 100644 --- a/src/com/android/browser/TitleBarXLarge.java +++ b/src/com/android/browser/TitleBarXLarge.java @@ -165,8 +165,7 @@ public class TitleBarXLarge extends TitleBarBase } else if (mForwardButton == v) { mUiController.getCurrentTopWebView().goForward(); } else if (mStar == v) { - mUiController.bookmarkCurrentPage( - AddBookmarkPage.DEFAULT_FOLDER_ID, true); + mUiController.bookmarkCurrentPage(true); } else if (mAllButton == v) { mUiController.bookmarksOrHistoryPicker(false); } else if (mSearchButton == v) { diff --git a/src/com/android/browser/UiController.java b/src/com/android/browser/UiController.java index 4fc37af..05eaf8e 100644 --- a/src/com/android/browser/UiController.java +++ b/src/com/android/browser/UiController.java @@ -57,7 +57,7 @@ public interface UiController extends BookmarksHistoryCallbacks { void stopLoading(); - void bookmarkCurrentPage(long folderId, boolean canBeAnEdit); + void bookmarkCurrentPage(boolean canBeAnEdit); void bookmarksOrHistoryPicker(boolean openHistory); |