Browse Source

Changelog dialog not cancellable by touching outside

changelog
Ezerous 6 years ago
parent
commit
629bd7cd9e
No known key found for this signature in database GPG Key ID: 262B2954BBA319E3
  1. 4
      app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java

4
app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java

@ -101,10 +101,12 @@ public class MainActivity extends BaseActivity implements RecentFragment.RecentF
if (Changelog.getLaunchType(this) == Changelog.LAUNCH_TYPE.FIRST_LAUNCH_AFTER_UPDATE) { if (Changelog.getLaunchType(this) == Changelog.LAUNCH_TYPE.FIRST_LAUNCH_AFTER_UPDATE) {
AlertDialog dialog = Changelog.getChangelogDialog(this); AlertDialog dialog = Changelog.getChangelogDialog(this);
if(dialog!=null) if(dialog!=null){
dialog.setCanceledOnTouchOutside(false);
dialog.show(); dialog.show();
} }
} }
}
@Override @Override
protected void onNewIntent(Intent intent) { protected void onNewIntent(Intent intent) {

Loading…
Cancel
Save