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()
|
finishFavoriteConfirmActivity()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDismiss(dialog: DialogInterface) {
|
override fun onDismiss(dialog: DialogInterface?) {
|
||||||
super.onDismiss(dialog)
|
super.onDismiss(dialog)
|
||||||
finishFavoriteConfirmActivity()
|
finishFavoriteConfirmActivity()
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,7 +149,7 @@ class RetweetQuoteDialogFragment : AbsStatusDialogFragment() {
|
||||||
updateTextCount(dialog, editComment.text, status, details)
|
updateTextCount(dialog, editComment.text, status, details)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCancel(dialog: DialogInterface) {
|
override fun onCancel(dialog: DialogInterface?) {
|
||||||
if (dialog !is Dialog) return
|
if (dialog !is Dialog) return
|
||||||
if (dialog.editComment.empty) return
|
if (dialog.editComment.empty) return
|
||||||
dialog.saveToDrafts()
|
dialog.saveToDrafts()
|
||||||
|
@ -157,7 +157,7 @@ class RetweetQuoteDialogFragment : AbsStatusDialogFragment() {
|
||||||
finishRetweetQuoteActivity()
|
finishRetweetQuoteActivity()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDismiss(dialog: DialogInterface) {
|
override fun onDismiss(dialog: DialogInterface?) {
|
||||||
super.onDismiss(dialog)
|
super.onDismiss(dialog)
|
||||||
finishRetweetQuoteActivity()
|
finishRetweetQuoteActivity()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue