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
|
|
@ -273,8 +273,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
|
|||
getString(R.string.read_help_link),
|
||||
{ },
|
||||
{ Utils.handleWebUrl(requireContext(), Uri.parse(GET_CONTENT_PICKER_HELP_URL)) },
|
||||
null,
|
||||
true
|
||||
null
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -333,7 +332,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
|
|||
|
||||
val dialog = Dialog(requireActivity())
|
||||
dialog.setContentView(R.layout.dialog_select_language)
|
||||
dialog.setCanceledOnTouchOutside(true)
|
||||
dialog.setCancelable(false)
|
||||
dialog.window?.setLayout(
|
||||
(resources.displayMetrics.widthPixels * 0.90).toInt(),
|
||||
(resources.displayMetrics.heightPixels * 0.90).toInt()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue