Merge "Execute getting battery info on the parallel executor"
This commit is contained in:
committed by
Android (Google) Code Review
commit
d4959ee116
@@ -160,7 +160,7 @@ public class BatteryInfo {
|
|||||||
callback.onBatteryInfoLoaded(batteryInfo);
|
callback.onBatteryInfoLoaded(batteryInfo);
|
||||||
BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime);
|
BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime);
|
||||||
}
|
}
|
||||||
}.execute();
|
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static BatteryInfo getBatteryInfo(final Context context,
|
public static BatteryInfo getBatteryInfo(final Context context,
|
||||||
|
|||||||
Reference in New Issue
Block a user