diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/FavoriteConfirmDialogFragment.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/FavoriteConfirmDialogFragment.kt index 83453bc53..20ff9bee7 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/FavoriteConfirmDialogFragment.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/FavoriteConfirmDialogFragment.kt @@ -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() } diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/RetweetQuoteDialogFragment.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/RetweetQuoteDialogFragment.kt index 7bbfcc032..4d8dc1400 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/RetweetQuoteDialogFragment.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/status/RetweetQuoteDialogFragment.kt @@ -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() }