Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit e008679

Browse files
committed
Merge pull request #81 from oney/disable-alert-cancelable
Avoid dismissing alert dialog when the user touches the screen
2 parents d25489c + 4403871 commit e008679

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePushDialog.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public void showDialog(String title, String message, String button1Text, String
3333

3434
AlertDialog.Builder builder = new AlertDialog.Builder(fragmentActivity);
3535

36+
builder.setCancelable(false);
37+
3638
DialogInterface.OnClickListener clickListener = new DialogInterface.OnClickListener() {
3739
@Override
3840
public void onClick(DialogInterface dialog, int which) {

0 commit comments

Comments
 (0)