summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/Bookmarks.java
Commit message (Collapse)AuthorAgeFilesLines
* Browser: fix crash updating recycled faviconPawit Pornkitprasan2015-11-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Occurs on the (slow) galaxysmtd. java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.IllegalStateException: Can't compress a recycled bitmap at android.graphics.Bitmap.checkRecycled(Bitmap.java:345) at android.graphics.Bitmap.compress(Bitmap.java:985) at com.android.browser.Bookmarks$1.doInBackground(Bookmarks.java:206) at com.android.browser.Bookmarks$1.doInBackground(Bookmarks.java:202) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more Change-Id: I867696996c786024aabb869583583198ac3bc13a
* Remove obsolete usage of WebIconDatabaseJohn Reck2011-07-261-4/+1
| | | | | | | Bug: 5019676 Removes some other legacy code Change-Id: I766d9d6f7805b5619a9769e6d72ae2f4c363d3ed
* Remove no longer needed sync settings/codeJohn Reck2011-05-261-4/+0
| | | | | | | Now that we support multiple accounts, remove a bunch of single-account management stuff Change-Id: I2ae60f0a510ace48e14c97763145d4e5dd523dd1
* Fix updatescreenshot behaviorJohn Reck2011-02-171-15/+4
| | | | | | | Bug: 3466250 URL query parameters are imporant, don't strip them Change-Id: I9c43598f56150470658485364aadfd0425bfa8cd
* Fixes account_* URI handling in BP2John Reck2011-01-061-3/+4
| | | | | | | | | 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
* Fix favicon updating to handle redirectsJohn Reck2010-12-211-17/+18
| | | | | | Bug: 3300913 Change-Id: Ifac69b47b4a1fb0ca4563769f5c281e264f7f368
* Implements the bookmark star in the History tabJohn Reck2010-12-101-5/+4
| | | | | | | | Bug: 3198742 This change wires up the bookmark star in the history tab. The user can now add and remove a history item from their bookmarks. Change-Id: I98f40bb5b4d3e82a9d305e83c750d87efb11a03e
* Beginning work on adding bookmarks with folders.Leon Scroggins III2010-09-221-5/+3
| | | | | | | | | Bug: 2953515 Provides the basic functionality for the AddBookmark page, allowing the user to save the bookmark in a folder of his/her choosing. Change-Id: I170599b723069aaee661dae3fc1a0fb915793906
* Add bookmarks to the current account.Jeff Hamilton2010-09-171-3/+10
| | | | | | | | | Make sure to stuff newly created bookmarks in the currently active account so that they show up in the bookmarks UI and will get synced properly. Change-Id: I5677ddb8480957bc209d79cc41f7df02221ef66d
* A bunch of updates to BrowserProvider2.Jeff Hamilton2010-09-151-32/+29
| | | | | | | | | | | | | | | | | | | The images are now shared between the history and bookmarks tables so updates to one are reflected in the other. Added a parameter for specifying a limit when calling query(). Added a combined view of history and bookmarks. Added a way to get a distinct list of the accounts providing bookmarks. Added the ability to find the server unique IDs for parent and insert_after when doing a query for a row. Change-Id: I9afa15bcf7ca68468793c49fbec701e516e4540e
* Switch the history management over to the new provider.Jeff Hamilton2010-08-181-43/+26
| | | | | | | Also fix up a bunch of bugs causing things like thumbnails to not be stored properly. Change-Id: I5758ee108734d9b50e741822dcbe86b7cc834e8e
* Update to the new contract class location.Jeff Hamilton2010-08-171-3/+1
| | | | Change-Id: I3ebf5a9dbac4b3b6ecbc0468242dedf909c23882
* First revision of the new browser provider.Jeff Hamilton2010-08-161-63/+101
| | | | | | | | | | | | | | 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
* Close Cursors when finished with them.Leon Scroggins2010-03-151-85/+101
| | | | Change-Id: Idf284f59b05b3f5b3565f7374899927a70f3ca07
* Do not insert duplicate urls into the browser database.Leon Scroggins2010-03-021-37/+1
| | | | | | | | | | | Move the logic for finding similar URLs to frameworks/base, and use it in addBookmark. In BrowserActivity, call smartUrlFilter before calling updateVisitedHistory, so the '/' will be appended before adding to the database. Part of fix for http://b/issue?id=2442391 Depends on a change to frameworks/base
* Don't allow the user to save bookmarks with a scheme that the Browser cannot ↵Ben Murdoch2009-10-141-0/+25
| | | | | | directly handle. Change-Id: I9cbdfeaaeef4ded3dac1623854ecb9c5c603eb91
* In the case of a page load error, save a second screenshot in ↵Ben Murdoch2009-09-241-2/+17
| | | | | | 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-4/+4
| | | | Fixes http://b/issue?id=2134421
* First real cut of bookmarks backup agentChristopher Tate2009-07-271-2/+8
| | | | | | | | | | | | | | | | | | | The agent now does backup/restore of the bookmarks table. Whether to back up is determined by flattening the bookmark table, CRCing the flattened representation, and comparing the CRC with the previous backup pass's version. If they differ (or if the file size differs), the table is deemed to have changed and we send the flattened file off to the server as a single key. On restore, the bookmark records are read individually from the flattened representation, the existing bookmarks table is queried for a matching URL, and if none exists the bookmark is inserted into the table. Bookmarks.addBookmark() now takes a boolean argument "retainIcon." When false, the implementation will not call into the web icon database. This is necessary during restore because the web icon database is only available from the Browser app's main thread, but restore happens without the app proper being involved. The other call points for addBookmark() have been updated to pass 'true,' i.e. preserving the current behavior.
* Consolidate bookmark add/delete code in the browser.Leon Scroggins2009-06-151-0/+196
Driven by a desire to put bookmarking functionality into the title bar, I have consolidated the code for adding and removing bookmarks.