diff options
| author | John Reck <jreck@google.com> | 2011-01-06 16:22:48 -0800 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2011-01-06 16:28:56 -0800 |
| commit | 03b20541bdaba770c751db40ed9723d7c53b3fe5 (patch) | |
| tree | a08ec454a2adfa03410a54faed4303bdf72b755d /src/com/android/browser/Bookmarks.java | |
| parent | ede1cbcb8cce72d10af4467aaf6f09a6e84dcbcc (diff) | |
| download | packages_apps_Browser-03b20541bdaba770c751db40ed9723d7c53b3fe5.tar.gz packages_apps_Browser-03b20541bdaba770c751db40ed9723d7c53b3fe5.tar.bz2 packages_apps_Browser-03b20541bdaba770c751db40ed9723d7c53b3fe5.zip | |
Fixes account_* URI handling in BP2
Bug: 3329654
Changes the handling of account_* URI parameters to allow requests
to distinguish between no account_* filtering and filter to the
default account.
Change-Id: I364f3f4398d077820b29bb7ddb17bba37429f21c
Diffstat (limited to 'src/com/android/browser/Bookmarks.java')
| -rw-r--r-- | src/com/android/browser/Bookmarks.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/browser/Bookmarks.java b/src/com/android/browser/Bookmarks.java index 9a5b6f0f1..beea489ec 100644 --- a/src/com/android/browser/Bookmarks.java +++ b/src/com/android/browser/Bookmarks.java @@ -100,8 +100,8 @@ import java.io.ByteArrayOutputStream; * will remain in the database, but only as a history item, and not as a * bookmarked site. * @param context Context of the calling Activity. This is used to make - * Toast confirming that the bookmark has been removed. If the - * caller provides null, the Toast will not be shown. + * Toast confirming that the bookmark has been removed and to + * lookup the correct content uri. It must not be null. * @param cr The ContentResolver being used to remove the bookmark. * @param url URL of the website to be removed. */ @@ -127,7 +127,8 @@ import java.io.ByteArrayOutputStream; cursor.getLong(0)); cr.delete(uri, null, null); if (context != null) { - Toast.makeText(context, R.string.removed_from_bookmarks, Toast.LENGTH_LONG).show(); + Toast.makeText(context, R.string.removed_from_bookmarks, + Toast.LENGTH_LONG).show(); } } catch (IllegalStateException e) { Log.e(LOGTAG, "removeFromBookmarks", e); |
