Skip to content

Commit

Permalink
Fixed wrong version in AsyncTaskUtils.executeParallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Gramlich committed May 11, 2013
1 parent d454ffd commit 6355904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/andengine/util/AsyncTaskUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private AsyncTaskUtils() {

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public static <T> void executeParallel(final AsyncTask<T, ?, ?> pAsyncTask, final T ... pParameters) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB_MR1) {
pAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, pParameters);
} else {
pAsyncTask.execute(pParameters);
Expand Down

0 comments on commit 6355904

Please sign in to comment.