mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-13 01:40:44 +01:00
minor style fix
This commit is contained in:
parent
7bc73b48a4
commit
0934331fe7
@ -64,7 +64,7 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
mCurrPath = mConfig.savePhotosFolder
|
mCurrPath = mConfig.savePhotosFolder
|
||||||
settings_save_photos.text = getHumanPath()
|
settings_save_photos.text = getHumanPath()
|
||||||
settings_save_photos_holder.setOnClickListener {
|
settings_save_photos_holder.setOnClickListener {
|
||||||
FilePickerDialog(this, mCurrPath, false, false, object : FilePickerDialog.OnFilePickerListener {
|
FilePickerDialog(this, mCurrPath, false, false, object : FilePickerDialog.OnFilePickerListener {
|
||||||
override fun onFail(error: FilePickerDialog.FilePickerResult) {
|
override fun onFail(error: FilePickerDialog.FilePickerResult) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,12 +146,12 @@ class SettingsActivity : SimpleActivity() {
|
|||||||
private fun setupMaxPhotoResolution() {
|
private fun setupMaxPhotoResolution() {
|
||||||
settings_max_photo_resolution.setSelection(getMaxPhotoSelection())
|
settings_max_photo_resolution.setSelection(getMaxPhotoSelection())
|
||||||
settings_max_photo_resolution.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
|
settings_max_photo_resolution.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
|
||||||
override fun onNothingSelected(parent: AdapterView<*>?) {
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
|
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
|
||||||
mConfig.maxPhotoResolution = getMaxPhotoPx(settings_max_photo_resolution.selectedItemPosition)
|
mConfig.maxPhotoResolution = getMaxPhotoPx(settings_max_photo_resolution.selectedItemPosition)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onNothingSelected(parent: AdapterView<*>?) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user