mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 859425 - Move decoding/storing favicons to background thread r=kats
This commit is contained in:
parent
7ce1fbb161
commit
d5747ab42b
@ -853,15 +853,16 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
if (urls.size() == 0)
|
||||
return;
|
||||
|
||||
(new UiAsyncTask<Void, Void, Cursor>(ThreadUtils.getBackgroundHandler()) {
|
||||
(new UiAsyncTask<Void, Void, Void>(ThreadUtils.getBackgroundHandler()) {
|
||||
@Override
|
||||
public Cursor doInBackground(Void... params) {
|
||||
return BrowserDB.getFaviconsForUrls(getContentResolver(), urls);
|
||||
public Void doInBackground(Void... params) {
|
||||
Cursor cursor = BrowserDB.getFaviconsForUrls(getContentResolver(), urls);
|
||||
storeFaviconsInMemCache(cursor);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPostExecute(Cursor c) {
|
||||
storeFaviconsInMemCache(c);
|
||||
public void onPostExecute(Void result) {
|
||||
postUpdateFavicons();
|
||||
}
|
||||
}).execute();
|
||||
|
Loading…
Reference in New Issue
Block a user