Skip to content

Commit

Permalink
fix: add null check for dialog when dismissing DialogBox (#644)
Browse files Browse the repository at this point in the history
Signed-off-by: Nirmal Khedkar <nirmalhk7@gmail.com>

Fixing Gradlew pointed bugs.

Signed-off-by: Nirmal Khedkar <nirmalhk7@gmail.com>
  • Loading branch information
nirmalhk7 committed Feb 22, 2020
1 parent 0dce461 commit e8e6a4d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -42,6 +42,7 @@ public void show(final Context context, int title, int message, int positive,


public void dismiss() {
alertDialog.dismiss();
if (alertDialog != null)
alertDialog.dismiss();
}
}

0 comments on commit e8e6a4d

Please sign in to comment.