Background tasks can decide which executor to run with.
- Allow BackgroundTaskService to take an Executor as an optional argument,
most commonly these will be one of the static fields defined on
AsyncTask.
- Make voicemail prepare media on async background thread.
- Mark voicemails as read concurrently with other async tasks.
- Change background task service to accept an Executor as argument.
- Remove the initial progress and initial time from seek bar.
Bug: 5148472
Change-Id: I55815294fe671d3a42af0b2d6d5e29e6eaea271e
diff --git a/src/com/android/contacts/CallDetailActivity.java b/src/com/android/contacts/CallDetailActivity.java
index 5a2e9ea..662485a 100644
--- a/src/com/android/contacts/CallDetailActivity.java
+++ b/src/com/android/contacts/CallDetailActivity.java
@@ -37,6 +37,7 @@
import android.content.res.Resources;
import android.database.Cursor;
import android.net.Uri;
+import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.CallLog;
import android.provider.CallLog.Calls;
@@ -222,7 +223,7 @@
values.put(Voicemails.IS_READ, true);
getContentResolver().update(voicemailUri, values, null, null);
}
- });
+ }, AsyncTask.THREAD_POOL_EXECUTOR);
}
/**