Update ChangeResolutionDialogX.kt

This commit is contained in:
Tibor Kaputa 2022-07-13 08:53:05 +02:00 committed by GitHub
parent 55c4575d03
commit 2b4d7db193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,9 @@ class ChangeResolutionDialogX(
activity.getAlertDialogBuilder()
.setPositiveButton(R.string.ok, null)
.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
}
}
}