Make class fields in EditPGN private

This commit is contained in:
Peter Osterlund 2019-07-19 19:26:43 +02:00
parent bdd577bb93
commit 408cb78272

View File

@ -56,24 +56,24 @@ import java.util.ArrayList;
import java.util.Locale; import java.util.Locale;
public abstract class EditPGN extends ListActivity { public abstract class EditPGN extends ListActivity {
static ArrayList<GameInfo> gamesInFile = new ArrayList<>(); private static ArrayList<GameInfo> gamesInFile = new ArrayList<>();
static boolean cacheValid = false; private static boolean cacheValid = false;
PGNFile pgnFile; private PGNFile pgnFile;
ProgressDialog progress; private ProgressDialog progress;
private GameInfo selectedGi = null; private GameInfo selectedGi = null;
ArrayAdapter<GameInfo> aa = null; private ArrayAdapter<GameInfo> aa = null;
SharedPreferences settings; private SharedPreferences settings;
int defaultItem = 0; private int defaultItem = 0;
String lastSearchString = ""; private String lastSearchString = "";
String lastFileName = ""; private String lastFileName = "";
long lastModTime = -1; private long lastModTime = -1;
Thread workThread = null; private Thread workThread = null;
boolean canceled = false; private boolean canceled = false;
boolean loadGame; // True when loading game, false when saving private boolean loadGame; // True when loading game, false when saving
String pgnToSave; private String pgnToSave;
private SelectGameBinding binding; private SelectGameBinding binding;