From efc2139026c5f5a2f25b79cddc6cbb7dd0070608 Mon Sep 17 00:00:00 2001 From: dgis Date: Tue, 8 Dec 2020 00:50:06 +0100 Subject: [PATCH] The KML folder is now saved when changing the KML script for a custom one via the menu "Change KML Script...". The setting "settings_kml_folder_embedded" was not saved when changing the KML script for a custom one via the menu "Change KML Script...". Scenario: 1 Create a new calc with embedded KML 2 "Change KML Script..." with a KML from a custom folder. 3 Save and Quit 4 Reopen Emu48, and the selected KML file is lost! --- ReadMe.txt | 4 ++++ app/src/main/assets/ReadMe.txt | 4 ++++ app/src/main/java/org/emulator/forty/eight/MainActivity.java | 2 ++ 3 files changed, 10 insertions(+) diff --git a/ReadMe.txt b/ReadMe.txt index 54d1d02..f2a79dd 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -63,6 +63,10 @@ LINKS CHANGES +Version 2.2 (2020-12-08) + +- The KML folder is now saved when changing the KML script for a custom one via the menu "Change KML Script...". + Version 2.1 (2020-11-23) diff --git a/app/src/main/assets/ReadMe.txt b/app/src/main/assets/ReadMe.txt index a645ade..da67103 100644 --- a/app/src/main/assets/ReadMe.txt +++ b/app/src/main/assets/ReadMe.txt @@ -63,6 +63,10 @@ LINKS CHANGES +Version 2.2 (2020-12-08) + +- The KML folder is now saved when changing the KML script for a custom one via the menu "Change KML Script...". + Version 2.1 (2020-11-23) diff --git a/app/src/main/java/org/emulator/forty/eight/MainActivity.java b/app/src/main/java/org/emulator/forty/eight/MainActivity.java index 1834875..cf8bb73 100644 --- a/app/src/main/java/org/emulator/forty/eight/MainActivity.java +++ b/app/src/main/java/org/emulator/forty/eight/MainActivity.java @@ -994,6 +994,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On // We only change the KML script here. int result = NativeLib.onViewScript(scriptItem.filename, scriptItem.folder); if(result > 0) { + //TODO no need to call changeKMLFolder(scriptItem.folder); + settings.putString("settings_kml_folder_embedded", scriptItem.folder); displayKMLTitle(); showKMLLog(); } else