Bug 802130 - Move GeckoAppShell.getHandler() to ThreadUtils.getBackgroundHandler(). r=mfinkle
This commit is contained in:
@@ -47,6 +47,14 @@ public final class ThreadUtils {
|
||||
return sBackgroundThread;
|
||||
}
|
||||
|
||||
public static Handler getBackgroundHandler() {
|
||||
return GeckoBackgroundThread.getHandler();
|
||||
}
|
||||
|
||||
public static void postToBackgroundThread(Runnable runnable) {
|
||||
GeckoBackgroundThread.post(runnable);
|
||||
}
|
||||
|
||||
public static void assertOnUiThread() {
|
||||
assertOnThread(getUiThread());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user