Refactoring

This commit is contained in:
M66B 2020-04-23 17:56:02 +02:00
parent f08fa741d1
commit bfea17cc4a
1 changed files with 2 additions and 2 deletions

View File

@ -163,6 +163,8 @@ public class Helper {
")+" ")+"
); );
private static final ExecutorService executor = getBackgroundExecutor(1, "helper");
static ExecutorService getBackgroundExecutor(int threads, final String name) { static ExecutorService getBackgroundExecutor(int threads, final String name) {
ThreadFactory factory = new ThreadFactory() { ThreadFactory factory = new ThreadFactory() {
private final AtomicInteger threadId = new AtomicInteger(); private final AtomicInteger threadId = new AtomicInteger();
@ -327,8 +329,6 @@ public class Helper {
} }
} }
private static final ExecutorService executor = getBackgroundExecutor(1, "helper");
// Features // Features
static boolean hasPermission(Context context, String name) { static boolean hasPermission(Context context, String name) {