Added corner dialog for blacklist
parent
d108193d5e
commit
778ec942a5
|
@ -84,6 +84,7 @@ class BlacklistFolderChooserDialog : DialogFragment() {
|
||||||
ActivityCompat.checkSelfPermission(requireActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
ActivityCompat.checkSelfPermission(requireActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||||
return MaterialDialog(requireActivity(), BottomSheet(LayoutMode.WRAP_CONTENT)).show {
|
return MaterialDialog(requireActivity(), BottomSheet(LayoutMode.WRAP_CONTENT)).show {
|
||||||
title(R.string.md_error_label)
|
title(R.string.md_error_label)
|
||||||
|
cornerRadius(PreferenceUtil.getInstance(requireContext()).dialogCorner)
|
||||||
message(R.string.md_storage_perm_error)
|
message(R.string.md_storage_perm_error)
|
||||||
positiveButton(android.R.string.ok)
|
positiveButton(android.R.string.ok)
|
||||||
}
|
}
|
||||||
|
@ -141,6 +142,7 @@ class BlacklistFolderChooserDialog : DialogFragment() {
|
||||||
val dialog = dialog as MaterialDialog?
|
val dialog = dialog as MaterialDialog?
|
||||||
|
|
||||||
dialog?.apply {
|
dialog?.apply {
|
||||||
|
cornerRadius(PreferenceUtil.getInstance(requireContext()).dialogCorner)
|
||||||
setTitle(parentFolder!!.absolutePath)
|
setTitle(parentFolder!!.absolutePath)
|
||||||
listItems(items = contentsArray()) { _, index, _ ->
|
listItems(items = contentsArray()) { _, index, _ ->
|
||||||
onSelection(index)
|
onSelection(index)
|
||||||
|
|
Loading…
Reference in New Issue