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; 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) { private void sendRegistrationIdToBackend(final boolean isNew) {