fixed nullable parameter declaration
This commit is contained in:
parent
da20bb076e
commit
6964270b6f
|
@ -84,11 +84,11 @@ class FavoriteConfirmDialogFragment : AbsStatusDialogFragment() {
|
|||
|
||||
}
|
||||
|
||||
override fun onCancel(dialog: DialogInterface) {
|
||||
override fun onCancel(dialog: DialogInterface?) {
|
||||
finishFavoriteConfirmActivity()
|
||||
}
|
||||
|
||||
override fun onDismiss(dialog: DialogInterface) {
|
||||
override fun onDismiss(dialog: DialogInterface?) {
|
||||
super.onDismiss(dialog)
|
||||
finishFavoriteConfirmActivity()
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ class RetweetQuoteDialogFragment : AbsStatusDialogFragment() {
|
|||
updateTextCount(dialog, editComment.text, status, details)
|
||||
}
|
||||
|
||||
override fun onCancel(dialog: DialogInterface) {
|
||||
override fun onCancel(dialog: DialogInterface?) {
|
||||
if (dialog !is Dialog) return
|
||||
if (dialog.editComment.empty) return
|
||||
dialog.saveToDrafts()
|
||||
|
@ -157,7 +157,7 @@ class RetweetQuoteDialogFragment : AbsStatusDialogFragment() {
|
|||
finishRetweetQuoteActivity()
|
||||
}
|
||||
|
||||
override fun onDismiss(dialog: DialogInterface) {
|
||||
override fun onDismiss(dialog: DialogInterface?) {
|
||||
super.onDismiss(dialog)
|
||||
finishRetweetQuoteActivity()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue