mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
make dialog modal (#6015)
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
c175a4ee03
commit
9a876fa5e2
27 changed files with 53 additions and 62 deletions
|
|
@ -1596,8 +1596,7 @@ class MediaDetailFragment : CommonsDaggerSupportFragment(), CategoryEditHelper.C
|
|||
getString(R.string.about_translate_cancel),
|
||||
{ onDeleteClicked(spinner) },
|
||||
{},
|
||||
spinner,
|
||||
true
|
||||
spinner
|
||||
)
|
||||
if (isDeleted) {
|
||||
dialog!!.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled = false
|
||||
|
|
@ -1616,8 +1615,7 @@ class MediaDetailFragment : CommonsDaggerSupportFragment(), CategoryEditHelper.C
|
|||
onDeleteClickeddialogtext(reason)
|
||||
},
|
||||
{},
|
||||
input,
|
||||
true
|
||||
input
|
||||
)
|
||||
input.addTextChangedListener(object : TextWatcher {
|
||||
fun handleText() {
|
||||
|
|
|
|||
|
|
@ -283,6 +283,7 @@ public class MediaDetailPagerFragment extends CommonsDaggerSupportFragment imple
|
|||
builder.setItems(R.array.report_violation_options, (dialog, which) -> {
|
||||
sendReportEmail(media, values[which]);
|
||||
});
|
||||
builder.setCancelable(false);
|
||||
builder.show();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -196,6 +196,7 @@ class ZoomableActivity : BaseActivity() {
|
|||
val dialog = Dialog(this)
|
||||
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE)
|
||||
dialog.setContentView(R.layout.full_screen_mode_info_dialog)
|
||||
dialog.setCancelable(false)
|
||||
(dialog.findViewById(R.id.btn_ok) as Button).setOnClickListener { dialog.dismiss() }
|
||||
dialog.show()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue