diff --git a/app/src/main/java/igrek/songbook/logger/Logs.java b/app/src/main/java/igrek/songbook/logger/Logs.java index c46e6c1c..599acfb1 100644 --- a/app/src/main/java/igrek/songbook/logger/Logs.java +++ b/app/src/main/java/igrek/songbook/logger/Logs.java @@ -15,7 +15,7 @@ public class Logs { private static final String LOG_TAG = "ylog"; private static final boolean SHOW_EXCEPTIONS_TRACE = true; - private static final LogLevel SHOW_TRACE_DETAILS_LEVEL = LogLevel.TRACE; + private static final LogLevel SHOW_TRACE_DETAILS_LEVEL = LogLevel.DEBUG; private static List echoes; private static int errors = 0; diff --git a/app/src/main/java/igrek/songbook/logic/app/BaseApp.java b/app/src/main/java/igrek/songbook/logic/app/BaseApp.java index 3d10edc9..3dff6d5c 100644 --- a/app/src/main/java/igrek/songbook/logic/app/BaseApp.java +++ b/app/src/main/java/igrek/songbook/logic/app/BaseApp.java @@ -9,6 +9,7 @@ import android.view.WindowManager; import igrek.songbook.logger.Logs; +import igrek.songbook.logic.controller.AppController; public abstract class BaseApp { @@ -26,6 +27,9 @@ public abstract class BaseApp { public BaseApp(AppCompatActivity aActivity) { this.activity = aActivity; + // WYCZYSZCZENIE REJESTRU USŁUG I LISTENERÓW EVENTÓW + new AppController(); + //łapanie niezłapanych wyjątków defaultUEH = Thread.getDefaultUncaughtExceptionHandler(); Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { diff --git a/app/src/main/java/igrek/songbook/logic/controller/AppController.java b/app/src/main/java/igrek/songbook/logic/controller/AppController.java index bbbc3b9b..48412b94 100644 --- a/app/src/main/java/igrek/songbook/logic/controller/AppController.java +++ b/app/src/main/java/igrek/songbook/logic/controller/AppController.java @@ -14,6 +14,9 @@ public class AppController { private static AppController instance = null; + /** + * Reset instacji rejestru usług i wyczyszczenie listenerów eventów + */ public AppController() { servicesRegistry = new ServicesRegistry(); eventDispatcher = new EventDispatcher(); diff --git a/app/src/main/java/igrek/songbook/logic/filetree/FileTreeManager.java b/app/src/main/java/igrek/songbook/logic/filetree/FileTreeManager.java index e0c1892c..a02aca27 100644 --- a/app/src/main/java/igrek/songbook/logic/filetree/FileTreeManager.java +++ b/app/src/main/java/igrek/songbook/logic/filetree/FileTreeManager.java @@ -14,7 +14,7 @@ public class FileTreeManager { - private String currentPath; + private String currentPath = null; private String currentFileName = null; private List items; @@ -23,6 +23,7 @@ public FileTreeManager(String startPath) { Filesystem filesystem = AppController.getService(Filesystem.class); + currentPath = null; setCurrentPathIfNotSet(filesystem, startPath); if (currentPath == null) { Logs.warn("not existing starting directory: " + startPath + ", getting default"); diff --git a/release/SongBook-1.2.32.apk b/release/SongBook-1.2.32.apk deleted file mode 100644 index 1ba34eaf..00000000 Binary files a/release/SongBook-1.2.32.apk and /dev/null differ diff --git a/release/SongBook-1.2.43.apk b/release/SongBook-1.2.43.apk new file mode 100644 index 00000000..a609b3b4 Binary files /dev/null and b/release/SongBook-1.2.43.apk differ diff --git a/release/SongBook-db-1.2.32.zip b/release/SongBook-db-1.2.43.zip similarity index 100% rename from release/SongBook-db-1.2.32.zip rename to release/SongBook-db-1.2.43.zip