Some improvements with nsfw dialog

This commit is contained in:
Thomas 2020-11-28 09:32:31 +01:00
parent b59d97279d
commit 2955206b07
1 changed files with 1 additions and 0 deletions

View File

@ -1170,6 +1170,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
AlertDialog.Builder dialogBuilder; AlertDialog.Builder dialogBuilder;
dialogBuilder = new AlertDialog.Builder(PeertubeActivity.this); dialogBuilder = new AlertDialog.Builder(PeertubeActivity.this);
dialogBuilder.setTitle(R.string.nsfw_title_warning); dialogBuilder.setTitle(R.string.nsfw_title_warning);
dialogBuilder.setCancelable(false);
dialogBuilder.setMessage(R.string.nsfw_message_warning); dialogBuilder.setMessage(R.string.nsfw_message_warning);
dialogBuilder.setNegativeButton(R.string.no, (dialog, id) -> { dialogBuilder.setNegativeButton(R.string.no, (dialog, id) -> {
dialog.dismiss(); dialog.dismiss();