Skip to content

Commit

Permalink
fix dismiss bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaochunyu committed Mar 22, 2019
1 parent b2b9d22 commit aaf47d9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.zcy.fancydialog

import android.content.Context
import android.content.DialogInterface
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
Expand Down Expand Up @@ -93,9 +94,9 @@ abstract class BaseFragmentDialog : DialogFragment() {
}
}

override fun dismiss() {
override fun onDismiss(dialog: DialogInterface) {
disListener?.invoke()
super.dismiss()
super.onDismiss(dialog)
}

fun onShow(listener: () -> Unit) {
Expand Down

0 comments on commit aaf47d9

Please sign in to comment.