mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Refactoring
This commit is contained in:
@@ -163,6 +163,8 @@ public class Helper {
|
||||
")+"
|
||||
);
|
||||
|
||||
private static final ExecutorService executor = getBackgroundExecutor(1, "helper");
|
||||
|
||||
static ExecutorService getBackgroundExecutor(int threads, final String name) {
|
||||
ThreadFactory factory = new ThreadFactory() {
|
||||
private final AtomicInteger threadId = new AtomicInteger();
|
||||
@@ -327,8 +329,6 @@ public class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
private static final ExecutorService executor = getBackgroundExecutor(1, "helper");
|
||||
|
||||
// Features
|
||||
|
||||
static boolean hasPermission(Context context, String name) {
|
||||
|
||||
Reference in New Issue
Block a user