Removed wakelock

pull/198/head
M66B 3 years ago
parent d3f3a2b37d
commit 82b44928b0

@ -30,7 +30,6 @@ import android.graphics.Color;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Bundle;
import android.os.PowerManager;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.Menu;
@ -876,12 +875,6 @@ public class FragmentFolders extends FragmentBase {
@Override
protected Void onExecute(Context context, Bundle args) throws Throwable {
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(
PowerManager.PARTIAL_WAKE_LOCK, BuildConfig.APPLICATION_ID + ":mbox");
try {
wl.acquire();
long fid = args.getLong("id");
Uri uri = args.getParcelable("uri");
@ -1003,9 +996,6 @@ public class FragmentFolders extends FragmentBase {
}
return null;
} finally {
wl.release();
}
}
@Override

Loading…
Cancel
Save