Merge "Execute getting battery info on the parallel executor"

This commit is contained in:
TreeHugger Robot
2019-09-27 11:18:39 +00:00
committed by Android (Google) Code Review

View File

@@ -160,7 +160,7 @@ public class BatteryInfo {
callback.onBatteryInfoLoaded(batteryInfo);
BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime);
}
}.execute();
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
public static BatteryInfo getBatteryInfo(final Context context,