mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
replace blank dialog closures with null
This commit is contained in:
parent
c533b12c5a
commit
3a6e50f169
3 changed files with 3 additions and 3 deletions
|
@ -423,7 +423,7 @@ class ExtensionBottomSheet @JvmOverloads constructor(context: Context, attrs: At
|
|||
.setPositiveButton(R.string.remove) { _, _ ->
|
||||
presenter.uninstallExtension(pkgName)
|
||||
}
|
||||
.setNegativeButton(android.R.string.cancel) { _, _ -> }
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ class ExtensionDetailsHeaderAdapter(private val presenter: ExtensionDetailsPrese
|
|||
.setPositiveButton(R.string.remove) { _, _ ->
|
||||
presenter.uninstallExtension()
|
||||
}
|
||||
.setNegativeButton(android.R.string.cancel) { _, _ -> }
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -187,7 +187,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
|
|||
materialAlertDialog()
|
||||
.setTitle(R.string.warning)
|
||||
.setMessage(R.string.allow_notifications_recommended)
|
||||
.setPositiveButton(android.R.string.ok) { _, _ -> }
|
||||
.setPositiveButton(android.R.string.ok, null)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue