summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserBookmarksAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Don't show stale thumbnailsJohn Reck2012-06-051-1/+2
| | | | | | | | | Bug: 6610952 We don't null item.thumbnail because we want to recycle the bitmap if the item changes, so add a boolean saying whether or not we have an actual thumbnail to show to avoid showing stale data Change-Id: Ibfd485cb7f3ea8991222b8e99704170bf331472b
* Fix getItemId()John Reck2012-05-041-0/+5
| | | | | | Bug: 6446119 Change-Id: If8c13c9f2cb9b93c6f3575f12111059aeeacd5cb
* Remove unused codeJohn Reck2012-04-241-61/+3
| | | | Change-Id: Ia38f8aabbb5cfa1cceab160f4285e7b86aac2c17
* Load bookmarks asynchronouslyJohn Reck2012-04-181-44/+78
| | | | | | Bug: 5297900 Change-Id: I8b728cfe06799099e21c402d5da7087507209ffa
* Support BOOKMARK_TYPEJohn Reck2012-04-121-2/+12
| | | | | | | | Bug: 6332869 Bug: 5494697 Bookmark type also gives us an easy way to localize Other Bookmarks Change-Id: Iab208da0cb1b2af5d256990cdc4ab5c11821523b
* Update folder asset usageJohn Reck2011-09-281-0/+3
| | | | | | Bug: 5066431 Change-Id: Icc4ea38e64881d0f67d3cbbd0b6bda7138f4a0b4
* Re-enable list view modeJohn Reck2011-06-201-0/+4
| | | | | | Bug: 4645489 Change-Id: Id6eab53a6cb73083781c96a41bfeffec6eae0498
* Remove magic paddings from bookmark viewJohn Reck2011-06-151-0/+6
| | | | | | | Use calculated sizes to correctly center without the need for "magic" padding values. Change-Id: Ida64a80243df9bf05355dd1db1047fc16c10b726
* Initial pass at collapsable bookmarksJohn Reck2011-05-101-1/+1
| | | | | | | Change bookmark view to show all bookmarks Group by account_name Change-Id: I2c252c9f0e8d4df4271649dbe9bf3db336f921df
* Tab switcher cleanupJohn Reck2011-03-211-7/+1
| | | | | | Make it holo and clean up the code Change-Id: I6462cb72f104a2c076fd2ce2da876c74de8e783a
* asset drop & namingMichael Kolb2011-01-201-1/+1
| | | | | | | | | drop in new assets get naming in sync with UX Note: not all resources are included yet item_background...xm will be enabled when all required resources come in Change-Id: I321084abd25ef6c533f1f3da636a246e7ee00547
* History UI updateJohn Reck2011-01-181-8/+3
| | | | Change-Id: If4af6e37252f297bc1744af65df4bc2f123f41dd
* Bookmark UI updateJohn Reck2011-01-141-2/+17
| | | | Change-Id: Ibdf7f93f7c5863d7108044dcd40d3866ff02518a
* Spec update for Bookmark widgetJohn Reck2010-12-151-1/+1
| | | | | | | | | | Bug: 3286323 This updates both the assets for the bookmark widget and slightly alters its behavior to match the updated spec. There are now two touch targets in the header, one launches the browser and the other launches the bookmarks view. Change-Id: I1e8864983852af8421280b86421dea1d9ed4335e
* Refactor Bookmark fragment, fixes NPEJohn Reck2010-11-241-0/+5
| | | | | | | | | | Bug: 2926451 This change refactors the BrowserBookmarkPage fragment for better encapsulation, and updates the CombinedBookmarkHistoryView and ShortcutActivity. ShortcutActivity now supports folder navigation as well as toggling list or thumbnail view. Change-Id: Ie8168467e793d60d75c15746f81318cfa7e9f003
* Adds a list view option for viewing bookmarksJohn Reck2010-11-231-10/+65
| | | | | | | | | Bug: 3166319 This adds a popup menu option to the combined view that allows a user to switch between viewing their bookmarks as a grid of thumbnails or as a list of bookmarks with favicons. Change-Id: I6729d477f574a46847dff4b69c1b32d9f63fb37f
* added bookmarks folder iconMichael Kolb2010-09-221-9/+13
| | | | Change-Id: I34765961c29afa711f4d4e3f8f7fa9fca13753c6
* Make the bookmark thumbnails larger.Jeff Hamilton2010-09-021-2/+0
| | | | Change-Id: I33e72e55e0cad9c73b3c50cb30277ed22eb511cb
* First revision of the new browser provider.Jeff Hamilton2010-08-161-544/+21
| | | | | | | | | | | | | | This one has support for bookmarks sync, has the bookmarks and history in separate tables, and supports hierarchical bookmarks. Compatibility with the old APIs is not yet complete. The Bookmarks UI has been switched over to the new provider. Creating bookmarks puts them in the UIs root folder. Change-Id: Ib21713ddd19f43d178d49dbac977f749e7103368
* Create the bookmark adapter in a background thread.Patrick Scott2010-04-091-1/+2
| | | | | | | | Handling it asynchronously prevented an ANR but it still took forever with large databases. Bug: 2581894 Change-Id: I273375e439d7e3ac048728aabb39c6920fa87e5a
* Update bookmark favicons in the background.Patrick Scott2010-04-061-19/+26
| | | | | Bug: 2573890 Change-Id: I7c9ebfd1b561c40d806988e65f7e89d5cd283f89
* Request icons in the background.Patrick Scott2010-03-111-18/+1
| | | | | | | | | | | | | | BrowserBookmarksAdapter does not need to request bookmark icons as most of the bookmarks have up-to-date icons. We still need to request all icons on start up because a new icon may be loaded as a result of clicking a history items. Move the icon request to a background thread to not block the ui thread on large db lookups. Remove MostVisitedActivity as it is no longer used. Bug: 2496872 Change-Id: I378dce8fdb7e825da96594cd31b720ea24758af1
* Add data (title, screenshot, favicon) to share intent.Leon Scroggins2010-01-191-1/+8
| | | | | | Requires a change to frameworks/base Fixes http://b/issue?id=2243246
* Use LIKE rather than GLOB since the url contains '?'.Patrick Scott2010-01-071-2/+2
| | | | Bug: 2271388
* When displaying a bookmark item, only truncate the Strings that we display ↵Ben Murdoch2009-10-281-8/+1
| | | | | | | | in the ListView rather than the ones used to index into the bookmarks database. This caused a crash when bookmarks had titles longer than the text view limit. Fix for b/2219781 Change-Id: I4ea3cdfbaedce0dea6bd69f560aae9aea71ed7c1
* Save a new bookmark to the bookmarks DB asynchronously. Fix for bug 2151093.Ben Murdoch2009-09-301-0/+4
| | | | Change-Id: I860482f0a0610669f87965947b0818508d8988b7
* Fix layout issues on the bookmarks screen.Leon Scroggins2009-09-251-2/+2
| | | | | | | | | | Limit the title of a bookmark to stop at the right edge of screenshot. Use the new default screenshots for bookmarks without screenshots. Resize the bookmark screenshot to match the size of the default icon. Fixes http://b/issue?id=2042025 and http://b/issue?id=2098770 Change-Id: I66a10671ea98007cfe5bf7502fb1e3619276ca22
* In the case of a page load error, save a second screenshot in ↵Ben Murdoch2009-09-241-5/+3
| | | | | | onProgressChanged(100) to ensure that we save the substituted error page rather than the previous page that loaded. Also save the thumbnail for the page if the user creates the bookmark through the add bookmark menu or clicking the add bookmark icon on the bookmarks page. Change-Id: Ib2b7692a45290f9ce372968e05cde8f6903e4572
* Make the deletion of bookmarks depend on both title and URLAndrei Popescu2009-09-231-1/+2
| | | | Fixes http://b/issue?id=2134421
* Update the correct favicon when starting the load.Patrick Scott2009-09-211-9/+2
| | | | | The WebView's original url and current url are incorrect during the provisional load. Use the given url instead when updating the favicon.
* Put current screenshot under "Add" on bookmark thumbnail page.Ben Murdoch2009-09-211-3/+11
| | | | Change-Id: Iaf52037f755fea343ef68a23d3740f0f5cdcecb7
* Display favicons for history items.Patrick Scott2009-09-171-4/+11
| | | | | | | | Use the data from the java database before talking to the native database. The bookmarks database may contain favicons that the native database does not have a mapping for. Used the native icon database for recent history items since those are not stored in the java db. Request the icons each time the activity is created since the url->bitmap mapping is a global.
* Make the view mode that the user sets (either grid or list) in the ↵Ben Murdoch2009-09-161-5/+5
| | | | | | bookmarks/most visited page sticky. Change-Id: I67db0ef2997a5948491223a5ae17fd4aa0356e94
* Use a new resource for pages that do not have a screenshot in bookmarks.Leon Scroggins2009-09-141-2/+1
| | | | Change-Id: Iff64adbd0549be5c182dd38a18c5fbeb5e88a1e8
* Make the "Most visited" page have a thumbnail viewing mode.Leon Scroggins2009-08-061-19/+46
| | | | | | | | | Start capturing screenshots for all visited pages, and show them in a grid view on the most visited page. Modify the BrowserBookmarks- Page and Adapter so they can be used for the "Most visited" page. Also change some of the ids for context menu items to be the same in the browser and history context menus, for simplicity in handling them in BrowserBookmarksPage.
* Implement onReceivedTouchIconUrl.Patrick Scott2009-08-051-25/+74
| | | | | | | | | | | Add DownloadTouchIcon, an AsyncTask that downloads the apple-touch-icon for urls that are marked as bookmarks. The touch icon is stored in the bookmark database similar to favicons and thumbnails. If a shortcut is created for a bookmark containing a touch icon, the touch icon is used (with rounded corners). Refactor the bookmarks query to be a static function. The function uses the original url and new url to look for matching bookmarks. This takes care of redirects as well as bookmarks containing queries.
* Updates for the look of the bookmarks page.Leon Scroggins2009-08-041-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new assets. -tab_indicator.xml State selector for the background of tabs in the CombinedHistoryActivity -bookmark_thumnail.xml Web page title is now above the thumb. Removed the favicon. Added a shadow. -tab_header.xml Layout for the tabs in CombinedHistoryActivity -tabs.xml Change the height of the tabs. -bookmarks.xml Remove the title for the "switch" menu item, which gets set in Java, depending on the current viewing mode. -strings.xml Remove the placeholder menu item text, add the actual text for switching between modes. -BrowserBookmarksAdapter No longer set the favicon on top of the bookmark thumbs in grid mode. -BrowserBookmarksPage Implement onPrepareOptionsMenu, and set the title of a menu option, depending on the current viewing state. -CombinedHistoryActivity Create a common function for setting up all the tabs. Change the look of the tabs to match the new design.
* Work on the Bookmark Grid, including the favicon.Leon Scroggins2009-07-151-34/+15
| | | | | | | | | | Remove the file BookmarkGridPage, since a GridView will do just fine. Now we specify a height and width for the bitmaps rather than adjusting them for the screen size. Also add the favicon and match the design more closely for the Add option. In BrowserActivity, match the size of the saved screenshots to the desired size for the Bookmarks Activity. Also move the logic into its own method so it can be called from multiple places (still called in only one at the moment).
* Integrate bookmark grid view mode with list view mode.Leon Scroggins2009-07-141-96/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way the two different modes can share code and have all the same behaviors (i.e. context menu options). AndroidManifest.xml Remove BookmarkGridPage, which is no longer an Activity. bookmarks.xml Add a menu option to switch between the different viewing modes. strings.xml Name for that menu option. AddNewBookmark.java Remove copyTo, which is not necessary. BookmarkGridPage.java Change to just be a GridView, with our desired settings, and overriding onSizeChanged to size the thumbs appropriately. Now its constructor takes a BrowserBookmarksAdapter, which it uses instead of its old private Adapter. BrowserBookmarksAdapter.java Now has two modes, so it can be used for both the bookmarks grid and the list view. Removed a bunch of obsolete code, which was used for searching/sorting the bookmarks. BrowserBookmarksPage.java Now switches back and forth between using a GridView and a ListView.
* Consolidate bookmark add/delete code in the browser.Leon Scroggins2009-06-151-12/+1
| | | | | Driven by a desire to put bookmarking functionality into the title bar, I have consolidated the code for adding and removing bookmarks.
* Remove an unnecessary field.Leon Scroggins2009-05-211-2/+0
| | | | | This string was used for logging error messages, but it is not used.
* Automated import from //branches/master/...@141656,141656Patrick Scott2009-03-241-0/+15
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+535
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-535/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-2/+15
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+522