Compare commits

..

1 Commits

Author SHA1 Message Date
Jean-Baptiste
15891ff746 [android] Fix corner radius of DialogFragment
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
2026-01-20 18:22:27 +01:00
4 changed files with 8 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ public class ChooseBookmarkCategoryFragment
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View root = inflater.inflate(R.layout.choose_bookmark_category_fragment, container, false);
getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent);
getDialog().getWindow().setBackgroundDrawableResource(R.drawable.bg_transparent_dlg);
mRecycler = root.findViewById(R.id.recycler);
mRecycler.setLayoutManager(new LinearLayoutManager(requireActivity()));
return root;

View File

@@ -77,7 +77,7 @@ public class ChooseBookmarksSortingTypeFragment
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)
{
super.onViewCreated(view, savedInstanceState);
getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent);
getDialog().getWindow().setBackgroundDrawableResource(R.drawable.bg_transparent_dlg);
final Bundle args = getArguments();
if (args == null)

View File

@@ -61,7 +61,7 @@ public class StackedButtonsDialog extends AppCompatDialog implements View.OnClic
setCancelable(mCancelable);
setOnCancelListener(mCancelListener);
setContentView(R.layout.dialog_stacked_buttons);
getWindow().setBackgroundDrawableResource(android.R.color.transparent);
getWindow().setBackgroundDrawableResource(R.drawable.bg_transparent_dlg);
TextView title = findViewById(R.id.tv__title);
UiUtils.setTextAndHideIfEmpty(title, mTitle);

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/transparent"/>
<corners android:radius="28dp"/>
</shape>