4126e65...
by
Rouslan Solomakhin <email address hidden>
Merge to M48: Handle server profile/card disappearing while launching editor.
Sync can remove the server card or server profile while launching the
card/profile editor. This patch checks whether the data is still
available. If sync deleted the data, then the user sees the refreshed
list of cards and profiles.
Local profiles are not affected by this change. Editing a non-existent
profile is how you can create a new local profile.
Local cards are not affected by this change either. Editing a
non-existent card is how you can create a new local card. Also, local
cards are not synced.
[Offline pages] Making sure visit button works on tablet
Per suggestion from kkimlabs@ this patch:
* Moves a piece of logic responsible for opening bookmarks from
EnhancedBookmarkManager to EnhancedBookmarkUtils
* Calls EnhancedBookmarkUtils#openBookmark from EnhancedBookmarkEditActivity
when handling the Visit button.
[Offline pages] Fixing crashes caused by access to offline pages marked for deletion
This patch fixes the problems caused by:
* HasOfflinePages
* GetPageByBookmarkId
* GetPageByOfflineURL
* GetPageByOnlineURL
All of which allow for access to the offline page that is marked for
deletion, which means there is no valid bookmark corresponding to them.
This leads to crashes in the bookmark UI, as well as exposing
functionality that should not work.