Skip to content
Snippets Groups Projects
Commit 08be31a2 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Directly run calls already in background

parent daa32d3c
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,10 @@ public class VLCApplication extends Application {
}
public static void runBackground(Runnable runnable) {
instance.mThreadPool.execute(runnable);
if (Looper.myLooper() != Looper.getMainLooper())
runnable.run();
else
instance.mThreadPool.execute(runnable);
}
public static void runOnMainThread(Runnable runnable) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment