Skip to content

Commit 7caf975

Browse files
committed
Do not dismiss the dialog again when it already is
The dialog is already gone when onCancel/ onDismiss is called, not necessary to call dismiss the callback. To reproduce the issue, just rotate the screen in that dialog. Change-Id: Icb4a9dbf50f4fc4ed90e886159487422fda70714 Fixes: 33447412
1 parent b74bb67 commit 7caf975

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/policy/wifimanagement/WifiConfigCreationDialog.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,13 @@ public void onDismiss(DialogInterface dialog) {
149149
if (mListener != null) {
150150
mListener.onDismiss();
151151
}
152-
dismiss();
153152
}
154153

155154
@Override
156155
public void onCancel(DialogInterface dialog) {
157156
if (mListener != null) {
158157
mListener.onCancel();
159158
}
160-
dismiss();
161159
}
162160

163161
private void initialize() {

0 commit comments

Comments
 (0)