mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
move the save folder to the bottom of Settings
This commit is contained in:
@ -28,7 +28,6 @@ class SettingsActivity : SimpleActivity() {
|
||||
|
||||
setupCustomizeColors()
|
||||
setupUseEnglish()
|
||||
setupSavePhotosFolder()
|
||||
setupShowPreview()
|
||||
setupSound()
|
||||
setupFocusBeforeCapture()
|
||||
@ -38,6 +37,7 @@ class SettingsActivity : SimpleActivity() {
|
||||
setupKeepSettingsVisible()
|
||||
setupAlwaysOpenBackCamera()
|
||||
setupSavePhotoMetadata()
|
||||
setupSavePhotosFolder()
|
||||
updateTextColors(settings_holder)
|
||||
}
|
||||
|
||||
@ -70,18 +70,6 @@ class SettingsActivity : SimpleActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupSavePhotosFolder() {
|
||||
settings_save_photos.text = getLastPart(config.savePhotosFolder)
|
||||
settings_save_photos_holder.setOnClickListener {
|
||||
FilePickerDialog(this, config.savePhotosFolder, false, showFAB = true) {
|
||||
handleSAFDialog(File(it)) {
|
||||
config.savePhotosFolder = it
|
||||
settings_save_photos.text = getLastPart(config.savePhotosFolder)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getLastPart(path: String): String {
|
||||
val humanized = humanizePath(path)
|
||||
return humanized.substringAfterLast("/", humanized)
|
||||
@ -158,4 +146,16 @@ class SettingsActivity : SimpleActivity() {
|
||||
config.savePhotoMetadata = settings_save_photo_metadata.isChecked
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupSavePhotosFolder() {
|
||||
settings_save_photos.text = getLastPart(config.savePhotosFolder)
|
||||
settings_save_photos_holder.setOnClickListener {
|
||||
FilePickerDialog(this, config.savePhotosFolder, false, showFAB = true) {
|
||||
handleSAFDialog(File(it)) {
|
||||
config.savePhotosFolder = it
|
||||
settings_save_photos.text = getLastPart(config.savePhotosFolder)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user