mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-11-18 18:46:12 +01:00
Added sdk version check for executeOnExecutor
This commit is contained in:
parent
0065ca64f5
commit
8a8940871f
@ -258,7 +258,13 @@ public class ApplicationLoader extends Application {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, null, null, null);
|
||||
};
|
||||
|
||||
if (android.os.Build.VERSION.SDK_INT >= 11) {
|
||||
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, null, null, null);
|
||||
} else {
|
||||
task.execute(null, null, null);
|
||||
}
|
||||
}
|
||||
|
||||
private void sendRegistrationIdToBackend(final boolean isNew) {
|
||||
|
Loading…
Reference in New Issue
Block a user