private static UIState createFolderState( BookmarkId folder, EnhancedBookmarksModel bookmarkModel) { return createStateFromUrl( UrlConstants.BOOKMARKS_FOLDER_URL + folder.toString(), bookmarkModel); }
/** * Save the bookmark in bundle to save state of a fragment/activity. * * @param bundle Argument holder or savedInstanceState of the fragment/activity. * @param bookmark The bookmark to save. */ public static void saveBookmarkIdToBundle(Bundle bundle, BookmarkId bookmark) { bundle.putString(BOOKMARK_SAVE_NAME, bookmark.toString()); }
private void openBookmark() { Intent intent = new Intent(); intent.putExtra(EnhancedBookmarkActivity.INTENT_VISIT_BOOKMARK_ID, mBookmarkId.toString()); setResult(RESULT_OK, intent); finish(); }
public static void startEditActivity(Context context, BookmarkId bookmarkId) { Intent intent = new Intent(context, EnhancedBookmarkEditActivity.class); intent.putExtra(EnhancedBookmarkEditActivity.INTENT_BOOKMARK_ID, bookmarkId.toString()); context.startActivity(intent); }