Fix async task

This commit is contained in:
PavelRatushnyi 2017-10-26 11:12:21 +03:00
parent 3da754b0e2
commit a0127111f5
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ public class CurrentPositionHelper {
}
return null;
}
}.execute((Void) null);
}.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, (Void) null);
res = true;
}
return res;

View file

@ -103,7 +103,7 @@ public class CurrentPositionHelper {
}
return null;
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void) null);
}.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, (Void) null);
res = true;
}
return res;