RejectedExecutionException in DataUsageLIst

RejectedPolicy throw Exception which will interrupt users

Bug: https://code.google.com/p/android/issues/detail?id=237575
Test: open as many online apps as possible and then open the DataUsageList
Change-Id: I2dabc6ee53cd0f27f59098328fe2a16172f71d0b
This commit is contained in:
tiansiming
2017-03-06 22:30:34 +08:00
parent eeabd6b463
commit 8453fb3065

View File

@@ -90,8 +90,7 @@ public class AppDataUsagePreference extends Preference {
if (cachedDetail != null) {
bindView(cachedDetail, target);
} else {
new UidDetailTask(provider, item, target).executeOnExecutor(
AsyncTask.THREAD_POOL_EXECUTOR);
new UidDetailTask(provider, item, target).execute();
}
}