From 408cb78272cedb2a9c1239fd67b283cc296dfbda Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Fri, 19 Jul 2019 19:26:43 +0200 Subject: [PATCH] Make class fields in EditPGN private --- .../petero/droidfish/activities/EditPGN.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditPGN.java b/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditPGN.java index 12a04f9..075c28d 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditPGN.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditPGN.java @@ -56,24 +56,24 @@ import java.util.ArrayList; import java.util.Locale; public abstract class EditPGN extends ListActivity { - static ArrayList gamesInFile = new ArrayList<>(); - static boolean cacheValid = false; - PGNFile pgnFile; - ProgressDialog progress; + private static ArrayList gamesInFile = new ArrayList<>(); + private static boolean cacheValid = false; + private PGNFile pgnFile; + private ProgressDialog progress; private GameInfo selectedGi = null; - ArrayAdapter aa = null; + private ArrayAdapter aa = null; - SharedPreferences settings; - int defaultItem = 0; - String lastSearchString = ""; - String lastFileName = ""; - long lastModTime = -1; + private SharedPreferences settings; + private int defaultItem = 0; + private String lastSearchString = ""; + private String lastFileName = ""; + private long lastModTime = -1; - Thread workThread = null; - boolean canceled = false; + private Thread workThread = null; + private boolean canceled = false; - boolean loadGame; // True when loading game, false when saving - String pgnToSave; + private boolean loadGame; // True when loading game, false when saving + private String pgnToSave; private SelectGameBinding binding;