mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
Added sdk version check for executeOnExecutor
This commit is contained in:
parent
0065ca64f5
commit
8a8940871f
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue