mirror of
https://github.com/dgis/emu48android
synced 2024-12-26 09:58:49 +01:00
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!
This commit is contained in:
parent
85cf5f471d
commit
efc2139026
3 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue