summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/DownloadTouchIcon.java
Commit message (Collapse)AuthorAgeFilesLines
* Expand scope of try/catch in DownloadTouchIconJohn Reck2011-02-171-15/+20
| | | | | | | | | Bug: 3405675 In case something manages to sneak a bad URL through all the pre-checks, just catch all exceptions that occur when trying to download the touch icon and log the exception. Change-Id: I202e89d9913cd5c3edd309fc8e4c415052d3dd7d
* Fix download touch iconJohn Reck2011-02-171-1/+1
| | | | Change-Id: I7bf2d7c3d17f58ddb8fd615c3f1123bb840b211f
* Use constants in place of strings, and remove unused code.Leon Scroggins2010-10-221-3/+4
| | | | Change-Id: I4d27cf74edefcabacffbfc59fa8fe28f5b592fa7
* Merge commit '7bf3f38c493642b181f0c7ddf30b8214e50fea3b' into fix_amBjorn Bringert2010-10-121-11/+9
|\ | | | | | | | | | | | | | | Fixed conflicts: src/com/android/browser/AddBookmarkPage.java src/com/android/browser/DownloadTouchIcon.java Change-Id: I06cc43e41d1a01ef68aaad5dec3923f07d165329
| * NPE in DownloadTouchIcon because of getPreferredHttpHostHenrik Baard2010-09-061-6/+7
| | | | | | | | | | | | | | | | | | The call getPreferredHttpHost needs a context, however there are two constructors of the class, one of them does not take a context as input. Added context parameter to the second constructor. Change-Id: Ibe670c5b8848ced88b0756d83d5c13e0961652ae
* | A bunch of updates to BrowserProvider2.Jeff Hamilton2010-09-151-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-12/+12
| | | | | | | | | | | | | | Also fix up a bunch of bugs causing things like thumbnails to not be stored properly. Change-Id: I5758ee108734d9b50e741822dcbe86b7cc834e8e
* | First revision of the new browser provider.Jeff Hamilton2010-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix NPEs after merge of d159ec534823b87f9896843e95912b0df8c27e16 from openBen Murdoch2010-07-191-5/+6
| | | | | | | | | | | | source master. Change-Id: Ief98236102983698e4b753ec9649142761c86607
* | resolved conflicts for merge of e7c06a6e to masterJean-Baptiste Queru2010-07-161-1/+13
|\ \ | |/ | | | | Change-Id: If4f2cb14d9a05dc58322732a922e3300ff1a4558
| * Use proxy for downloads.Andreas Sandblad2010-07-141-1/+12
| | | | | | | | | | | | | | Use the new Proxy method getPreferredHttpHost to use proxy for downloads. Change-Id: I4224e29ba4b37bd570d84382764e08f9babe6530
* | Download a touch icon without putting it into the database.Ben Murdoch2010-07-011-10/+52
|/ | | | | | | | | Adds functionality to DownloadTouchIcon to pass a message back containing the touch icon bitmap rather than inserting it into the bookmarks database. This will be used by the installable web apps work. Change-Id: Ic87a571b84bf5a940a6c55a59423cd8556ebcef1
* Move queryBookmarksForUrl to background thread.Leon Scroggins2010-04-231-31/+33
| | | | | | Bug 2611964 Change-Id: I8f69ec42fbf880d031cfc2372cffd9719db4e280
* Close the bookmarks cursor.Patrick Scott2010-03-041-1/+3
| | | | | | | If no touch icon loader is created, close the cursor immediately. Close the cursor in doInBackground to ensure that the cursor is closed even in error. Bug: 2483029
* Update to reflect android-common no longer in framework.Dianne Hackborn2010-02-241-1/+1
|
* Changed class paths for classes moved in unbundling effortPaul Westbrook2009-12-141-1/+2
|
* Do database access in the background thread to prevent ANR.Patrick Scott2009-11-101-5/+4
| | | | Bug: 2222528
* Move Tab out of TabControl to its own class. So thatGrace Kloba2009-10-091-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | each tab has its own WebViewClient, WebChromeClient, ErrorConsoleView, lock icon type and inLoad (matching mPageStarted) state. Clean up BrowserActivity, TabControl, create a new Tab class. Fix stopAllLoading() to stop all main window and sub window loading. Remove mScale/mScrollX/Y from PickerData as it is not used any more. Remove doFlick/SensorManager as it is not used any more. Remove whiteList as it is not used any more. Remove MASF proxy service as it is not used any more. With this change, we will take the snapshot even when it is in the background. we will update the touchicon url even when it is in the background. we will update the bookmark/history even when it is in the background. we will update database quota and max appCache size even when it is in the background. we will show the error dialog of the background tab when it is brought to the foreground. (New behavior) we will update the lock icon correctly when switching tabs. we will proceed the http auth request for the background tab if we already have username and password. Fix http://b/issue?id=2158621
* Support precomposed app icons.Patrick Scott2009-09-221-2/+20
| | | | | | The precomposed icon overrides any other touch icon. We still need to do the round rect clip because apparently apple still applies the rounded corners, just not the glass effect. Inset the rectangle by 1 to fit the icons better.
* Implement onReceivedTouchIconUrl.Patrick Scott2009-08-051-0/+118
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.