mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243307 - Part 2: Ensure homescreen shortcut creation happens on background thread r=liuche
This commit is contained in:
parent
ff01801dc7
commit
ca01440bdb
@ -1165,7 +1165,12 @@ public class BrowserApp extends GeckoApp
|
||||
final String title = tab.getDisplayTitle();
|
||||
|
||||
if (url != null && title != null) {
|
||||
GeckoAppShell.createShortcut(title, url);
|
||||
ThreadUtils.postToBackgroundThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
GeckoAppShell.createShortcut(title, url);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user