Update ChangeResolutionDialog.kt
This commit is contained in:
parent
44223d4ba9
commit
55c4575d03
|
@ -33,8 +33,9 @@ class ChangeResolutionDialog(
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setOnDismissListener { callback() }
|
.setOnDismissListener { callback() }
|
||||||
.apply {
|
.apply {
|
||||||
activity.setupDialogStuff(view, this, if (isFrontCamera) R.string.front_camera else R.string.back_camera) {
|
val titleId = if (isFrontCamera) R.string.front_camera else R.string.back_camera
|
||||||
dialog = it
|
activity.setupDialogStuff(view, this, titleId) { alertDialog ->
|
||||||
|
dialog = alertDialog
|
||||||
if (openVideoResolutions) {
|
if (openVideoResolutions) {
|
||||||
view.change_resolution_video_holder.performClick()
|
view.change_resolution_video_holder.performClick()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue