Suppress warnings

pull/207/head
M66B 3 years ago
parent 1524f3f6df
commit ad0bb27894

@ -19,6 +19,7 @@ package eu.faircode.email;
Copyright 2018-2022 by Marcel Bokhorst (M66B) Copyright 2018-2022 by Marcel Bokhorst (M66B)
*/ */
import android.annotation.SuppressLint;
import android.content.ContentValues; import android.content.ContentValues;
import android.content.Context; import android.content.Context;
import android.database.Cursor; import android.database.Cursor;
@ -37,6 +38,7 @@ import io.requery.android.database.sqlite.SQLiteOpenHelper;
public class FtsDbHelper extends SQLiteOpenHelper { public class FtsDbHelper extends SQLiteOpenHelper {
private Context context; private Context context;
@SuppressLint("StaticFieldLeak")
private static FtsDbHelper instance = null; private static FtsDbHelper instance = null;
private static final int DATABASE_VERSION = 5; private static final int DATABASE_VERSION = 5;

@ -19,6 +19,7 @@ package eu.faircode.email;
Copyright 2018-2022 by Marcel Bokhorst (M66B) Copyright 2018-2022 by Marcel Bokhorst (M66B)
*/ */
import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
@ -61,6 +62,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
private static PowerManager.WakeLock wl = null; private static PowerManager.WakeLock wl = null;
private static ExecutorService globalExecutor = null; private static ExecutorService globalExecutor = null;
@SuppressLint("StaticFieldLeak")
private static Context themedContext = null; private static Context themedContext = null;
private static final List<SimpleTask> tasks = new ArrayList<>(); private static final List<SimpleTask> tasks = new ArrayList<>();

Loading…
Cancel
Save