Skip to content

Commit

Permalink
restore setOnDismissListener
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Apr 10, 2017
1 parent 7aef445 commit 13ab121
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ public void setAnimationStyle(@StyleRes int animRes) {
}
}

public void setOnDismissListener(final DialogInterface.OnDismissListener onDismissListener) {
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
BasicPopup.this.onDismiss(dialog);
onDismissListener.onDismiss(dialog);
}
});
LogUtils.verbose(this, "popup setOnDismissListener");
}

public void setOnKeyListener(final DialogInterface.OnKeyListener onKeyListener) {
dialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
Expand Down

0 comments on commit 13ab121

Please sign in to comment.