fixed nullable parameter declaration

This commit is contained in:
Mariotaku Lee 2017-05-14 10:22:25 +08:00
parent da20bb076e
commit 6964270b6f
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 4 additions and 4 deletions

View File

@ -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()
}

View File

@ -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()
}