widget: update preview

Update the widget preview to reflect the UI tweaks made.
This commit is contained in:
OxygenCobalt
2021-09-12 17:33:48 -06:00
parent 08169b6167
commit bc6bba56fc
4 changed files with 2 additions and 7 deletions
@@ -37,8 +37,7 @@ abstract class LifecycleDialog : AppCompatDialogFragment() {
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val builder = MaterialAlertDialogBuilder(requireActivity(), theme)
// Setting the background in XML will also apply it to the tooltip for some insane reason
// so we have to do it programmatically instead.
// Apply a custom background to avoid rounded corners.
builder.background = R.attr.colorSurface.resolveAttr(requireContext()).toDrawable()
onConfigDialog(builder)