1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-11-18 20:26:15 +01:00

Added sdk version check for executeOnExecutor

This commit is contained in:
DrKLO 2014-05-17 12:51:36 +04:00
parent 0065ca64f5
commit 8a8940871f

View File

@ -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) {