minor style fix

This commit is contained in:
tibbi 2016-11-15 20:22:47 +01:00
parent 7bc73b48a4
commit 0934331fe7

View File

@ -64,7 +64,7 @@ class SettingsActivity : SimpleActivity() {
mCurrPath = mConfig.savePhotosFolder
settings_save_photos.text = getHumanPath()
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) {
}
@ -146,12 +146,12 @@ class SettingsActivity : SimpleActivity() {
private fun setupMaxPhotoResolution() {
settings_max_photo_resolution.setSelection(getMaxPhotoSelection())
settings_max_photo_resolution.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onNothingSelected(parent: AdapterView<*>?) {
}
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
mConfig.maxPhotoResolution = getMaxPhotoPx(settings_max_photo_resolution.selectedItemPosition)
}
override fun onNothingSelected(parent: AdapterView<*>?) {
}
}
}