replace blank dialog closures with null

This commit is contained in:
Jays2Kings 2023-10-18 19:18:30 -07:00
parent c533b12c5a
commit 3a6e50f169
3 changed files with 3 additions and 3 deletions

View file

@ -423,7 +423,7 @@ class ExtensionBottomSheet @JvmOverloads constructor(context: Context, attrs: At
.setPositiveButton(R.string.remove) { _, _ -> .setPositiveButton(R.string.remove) { _, _ ->
presenter.uninstallExtension(pkgName) presenter.uninstallExtension(pkgName)
} }
.setNegativeButton(android.R.string.cancel) { _, _ -> } .setNegativeButton(android.R.string.cancel, null)
.show() .show()
} }
} }

View file

@ -58,7 +58,7 @@ class ExtensionDetailsHeaderAdapter(private val presenter: ExtensionDetailsPrese
.setPositiveButton(R.string.remove) { _, _ -> .setPositiveButton(R.string.remove) { _, _ ->
presenter.uninstallExtension() presenter.uninstallExtension()
} }
.setNegativeButton(android.R.string.cancel) { _, _ -> } .setNegativeButton(android.R.string.cancel, null)
.show() .show()
} }
} }

View file

@ -187,7 +187,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
materialAlertDialog() materialAlertDialog()
.setTitle(R.string.warning) .setTitle(R.string.warning)
.setMessage(R.string.allow_notifications_recommended) .setMessage(R.string.allow_notifications_recommended)
.setPositiveButton(android.R.string.ok) { _, _ -> } .setPositiveButton(android.R.string.ok, null)
.show() .show()
} }
} }