Update ChangeResolutionDialog.kt

This commit is contained in:
Tibor Kaputa 2022-07-13 08:52:36 +02:00 committed by GitHub
parent 44223d4ba9
commit 55c4575d03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ class ChangeResolutionDialog(
.setPositiveButton(R.string.ok, null)
.setOnDismissListener { callback() }
.apply {
activity.setupDialogStuff(view, this, if (isFrontCamera) R.string.front_camera else R.string.back_camera) {
dialog = it
val titleId = if (isFrontCamera) R.string.front_camera else R.string.back_camera
activity.setupDialogStuff(view, this, titleId) { alertDialog ->
dialog = alertDialog
if (openVideoResolutions) {
view.change_resolution_video_holder.performClick()
}