From 778ec942a5ed313193bab40f9c8cc96e2071df6b Mon Sep 17 00:00:00 2001 From: h4h13 Date: Sat, 30 Nov 2019 16:34:29 +0530 Subject: [PATCH] Added corner dialog for blacklist --- .../monkey/retromusic/dialogs/BlacklistFolderChooserDialog.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/code/name/monkey/retromusic/dialogs/BlacklistFolderChooserDialog.kt b/app/src/main/java/code/name/monkey/retromusic/dialogs/BlacklistFolderChooserDialog.kt index 06566845..be3b01d3 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dialogs/BlacklistFolderChooserDialog.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dialogs/BlacklistFolderChooserDialog.kt @@ -84,6 +84,7 @@ class BlacklistFolderChooserDialog : DialogFragment() { ActivityCompat.checkSelfPermission(requireActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { return MaterialDialog(requireActivity(), BottomSheet(LayoutMode.WRAP_CONTENT)).show { title(R.string.md_error_label) + cornerRadius(PreferenceUtil.getInstance(requireContext()).dialogCorner) message(R.string.md_storage_perm_error) positiveButton(android.R.string.ok) } @@ -141,6 +142,7 @@ class BlacklistFolderChooserDialog : DialogFragment() { val dialog = dialog as MaterialDialog? dialog?.apply { + cornerRadius(PreferenceUtil.getInstance(requireContext()).dialogCorner) setTitle(parentFolder!!.absolutePath) listItems(items = contentsArray()) { _, index, _ -> onSelection(index)