diff options
author | Michael Kolb <kolby@google.com> | 2010-10-06 10:45:32 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2010-10-13 13:15:26 -0700 |
commit | 370a4f3e47b740fd10b9028aae9e87e17254caa8 (patch) | |
tree | 1de9ba829377a13ec6add71bf386ab958b52cd21 /src/com/android/browser/AddBookmarkPage.java | |
parent | 9b333afde01a0d1f69d076f0dcd81764d2ca476c (diff) | |
download | packages_apps_Browser-370a4f3e47b740fd10b9028aae9e87e17254caa8.zip packages_apps_Browser-370a4f3e47b740fd10b9028aae9e87e17254caa8.tar.gz packages_apps_Browser-370a4f3e47b740fd10b9028aae9e87e17254caa8.tar.bz2 |
new bookmark screen part 2
specs here: https://docs.google.com/a/google.com/present/edit?id=0ARMpWryWB2oaY2RkbmZwdnBfODc0Y2diYnBoNDc&hl=en
moved tabs to top
added bread crumbs view for folder hierarchy
changed thumbnail sizes for xlarge screens
Change-Id: I3035f299b343f9aa1ec0dd41772e5594cd6b21f5
Diffstat (limited to 'src/com/android/browser/AddBookmarkPage.java')
-rw-r--r-- | src/com/android/browser/AddBookmarkPage.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index 92717d3..c1bafd6 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -63,6 +63,8 @@ public class AddBookmarkPage extends Activity implements View.OnClickListener, TextView.OnEditorActionListener, AdapterView.OnItemClickListener, LoaderManager.LoaderCallbacks<Cursor> { + public static final long DEFAULT_FOLDER_ID = -1; + private final String LOGTAG = "Bookmarks"; // IDs for the CursorLoaders that are used. @@ -194,7 +196,7 @@ public class AddBookmarkPage extends Activity } private void descendInto(String foldername, long id) { - if (id != -1) { + if (id != DEFAULT_FOLDER_ID) { mCurrentFolder = id; mPaths.add(new Folder(foldername, id)); updatePathString(); @@ -358,9 +360,9 @@ public class AddBookmarkPage extends Activity url = mOriginalUrl = mMap.getString("url"); mTouchIconUrl = mMap.getString("touch_icon_url"); mThumbnail = (Bitmap) mMap.getParcelable("thumbnail"); - mCurrentFolder = mMap.getLong(BrowserContract.Bookmarks.PARENT, -1); + mCurrentFolder = mMap.getLong(BrowserContract.Bookmarks.PARENT, DEFAULT_FOLDER_ID); } - if (mCurrentFolder == -1) { + if (mCurrentFolder == DEFAULT_FOLDER_ID) { mCurrentFolder = getBookmarksBarId(this); } |