Bug 1243307 - Part 2: Ensure homescreen shortcut creation happens on background thread r=liuche

This commit is contained in:
Andrzej Hunt 2016-02-01 15:36:38 -08:00
parent ff01801dc7
commit ca01440bdb

View File

@ -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);
}
});
}
}
}