Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
made changelog dialog to not be cancelable
Browse files Browse the repository at this point in the history
  • Loading branch information
k0shk0sh committed Sep 23, 2017
1 parent dc7e41c commit 268f7fc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.fastaccess.ui.modules.changelog;

import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
Expand Down Expand Up @@ -61,6 +62,13 @@ public class ChangelogBottomSheetDialog extends BaseMvpBottomSheetDialogFragment
return new ChangelogPresenter();
}

@NonNull @Override public Dialog onCreateDialog(Bundle savedInstanceState) {
Dialog dialog = super.onCreateDialog(savedInstanceState);
dialog.setCancelable(false);
dialog.setCanceledOnTouchOutside(false);
return dialog;
}

private void showChangelog(String html) {
if (prettifyWebView == null) return;
webProgress.setVisibility(View.GONE);
Expand Down

0 comments on commit 268f7fc

Please sign in to comment.