Small improvements

pull/209/head
M66B 2 years ago
parent fa95c4fcde
commit 91641e7d94

@ -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)

@ -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,

@ -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");

@ -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) {

@ -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) {

@ -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 {

@ -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

Loading…
Cancel
Save