Small improvements

This commit is contained in:
M66B 2022-10-20 15:46:05 +02:00
parent fa95c4fcde
commit 91641e7d94
7 changed files with 7 additions and 7 deletions

View File

@ -40,7 +40,7 @@ import java.util.List;
import java.util.concurrent.ExecutorService;
public class ActivityAnswer extends ActivityBase {
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "answer");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "answer");
@Override
@RequiresApi(api = Build.VERSION_CODES.M)

View File

@ -73,7 +73,7 @@ public class EditTextMultiAutoComplete extends AppCompatMultiAutoCompleteTextVie
private Tokenizer tokenizer;
private Map<String, Integer> encryption = new ConcurrentHashMap<>();
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "chips");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "chips");
private static int[] icons = new int[]{
R.drawable.twotone_vpn_key_24_p,

View File

@ -128,7 +128,7 @@ public class EntityRule {
private static final long SEND_DELAY = 5000L; // milliseconds
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "rule");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "rule");
static boolean needsHeaders(EntityMessage message, List<EntityRule> rules) {
return needs(rules, "header");

View File

@ -338,7 +338,7 @@ public class FragmentCompose extends FragmentBase {
private static final int REQUEST_SEND = 14;
private static final int REQUEST_REMOVE_ATTACHMENTS = 15;
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "compose");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "compose");
@Override
public void onCreate(Bundle savedInstanceState) {

View File

@ -446,7 +446,7 @@ public class FragmentMessages extends FragmentBase
"time", "unread", "starred", "priority"
));
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "messages");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "messages");
@Override
public void onCreate(Bundle savedInstanceState) {

View File

@ -22,7 +22,7 @@ public class MediaPlayerHelper {
static final int DEFAULT_SOUND_DURATION = 30; // seconds
static final int DEFAULT_ALARM_DURATION = 30; // seconds
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "media");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "media");
static void queue(Context context, String uri) {
try {

View File

@ -78,7 +78,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
private PowerManager.WakeLock wlOutbox;
private List<Long> handling = new ArrayList<>();
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "send");
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "send");
private static final int RETRY_MAX = 3;
private static final int CONNECTIVITY_DELAY = 5000; // milliseconds