handle exporting settings in a file
This commit is contained in:
parent
01953e1f23
commit
7382546e2c
2 changed files with 4 additions and 2 deletions
|
@ -61,7 +61,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.6.19'
|
||||
implementation 'com.simplemobiletools:commons:5.7.0'
|
||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||
|
|
|
@ -572,7 +572,7 @@ class SettingsActivity : SimpleActivity() {
|
|||
|
||||
private fun setupExportSettings() {
|
||||
settings_export_holder.setOnClickListener {
|
||||
val configItems = HashMap<String, Any>().apply {
|
||||
val configItems = LinkedHashMap<String, Any>().apply {
|
||||
put(IS_USING_SHARED_THEME, config.isUsingSharedTheme)
|
||||
put(TEXT_COLOR, config.textColor)
|
||||
put(BACKGROUND_COLOR, config.backgroundColor)
|
||||
|
@ -650,6 +650,8 @@ class SettingsActivity : SimpleActivity() {
|
|||
put(LAST_CONFLICT_RESOLUTION, config.lastConflictResolution)
|
||||
put(LAST_CONFLICT_APPLY_TO_ALL, config.lastConflictApplyToAll)
|
||||
}
|
||||
|
||||
exportSettings(configItems, "gallery-settings.txt")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue