mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Refactoring
This commit is contained in:
@@ -85,7 +85,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
|
||||
private ExecutorService getExecutor(Context context) {
|
||||
if (wl == null) {
|
||||
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||
PowerManager pm = Helper.getSystemService(context, PowerManager.class);
|
||||
wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, BuildConfig.APPLICATION_ID + ":task");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user