update the dialog with the selected resolution

This commit is contained in:
tibbi 2017-03-21 00:01:26 +01:00
parent 7ead59dad4
commit 4938da8d0d
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class ChangeResolutionDialog(val activity: SimpleActivity, val isBackCamera: Boo
RadioGroupDialog(activity, items, selectionIndex) {
if (isBackCamera) config.backPhotoResIndex else config.frontPhotoResIndex = it as Int
selectionIndex = it as Int
view.change_resolution_photo.text = items[selectionIndex].title
}
}
view.change_resolution_photo.text = items[selectionIndex].title
@ -47,6 +48,7 @@ class ChangeResolutionDialog(val activity: SimpleActivity, val isBackCamera: Boo
RadioGroupDialog(activity, items, selectionIndex) {
if (isBackCamera) config.backVideoResIndex else config.frontVideoResIndex = it as Int
selectionIndex = it as Int
view.change_resolution_video.text = items[selectionIndex].title
}
}
view.change_resolution_video.text = items[selectionIndex].title