Skip to content

Commit aaf47d9

Browse files
author
zhaochunyu
committed
fix dismiss bug
1 parent b2b9d22 commit aaf47d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fancydialog/src/main/java/com/zcy/fancydialog/BaseFragmentDialog.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.zcy.fancydialog
22

33
import android.content.Context
4+
import android.content.DialogInterface
45
import android.graphics.Color
56
import android.graphics.drawable.ColorDrawable
67
import android.os.Bundle
@@ -93,9 +94,9 @@ abstract class BaseFragmentDialog : DialogFragment() {
9394
}
9495
}
9596

96-
override fun dismiss() {
97+
override fun onDismiss(dialog: DialogInterface) {
9798
disListener?.invoke()
98-
super.dismiss()
99+
super.onDismiss(dialog)
99100
}
100101

101102
fun onShow(listener: () -> Unit) {

0 commit comments

Comments
 (0)