AsyncTaskUtils.java
1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package net.hockeyapp.android.utils;
import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.os.Build.VERSION;
import java.util.concurrent.Executor;
public class AsyncTaskUtils
{
private static Executor a;
@SuppressLint({"InlinedApi"})
public static void execute(AsyncTask<Void, ?, ?> paramAsyncTask)
{
if (Build.VERSION.SDK_INT <= 12)
{
paramAsyncTask.execute(new Void[0]);
return;
}
if (a != null) {}
for (Executor localExecutor = a;; localExecutor = AsyncTask.THREAD_POOL_EXECUTOR)
{
paramAsyncTask.executeOnExecutor(localExecutor, new Void[0]);
return;
}
}
public static Executor getCustomExecutor()
{
return a;
}
public static void setCustomExecutor(Executor paramExecutor)
{
a = paramExecutor;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/net/hockeyapp/android/utils/AsyncTaskUtils.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/