diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java b/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java index 19f9979a47..2557a805d3 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java @@ -253,10 +253,10 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr btnUnblockAll.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + final View dview = LayoutInflater.from(v.getContext()).inflate(R.layout.dialog_unblock, null); + new AlertDialog.Builder(v.getContext()) - .setIcon(R.drawable.twotone_help_24) - .setTitle(R.string.title_unblock_all) - .setMessage(R.string.title_unblock_all_remark) + .setView(dview) .setNegativeButton(android.R.string.cancel, null) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override diff --git a/app/src/main/res/layout/dialog_unblock.xml b/app/src/main/res/layout/dialog_unblock.xml new file mode 100644 index 0000000000..d226e8b11a --- /dev/null +++ b/app/src/main/res/layout/dialog_unblock.xml @@ -0,0 +1,38 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_options_synchronize.xml b/app/src/main/res/layout/fragment_options_synchronize.xml index f91b3e9844..faa2b56cd9 100644 --- a/app/src/main/res/layout/fragment_options_synchronize.xml +++ b/app/src/main/res/layout/fragment_options_synchronize.xml @@ -118,7 +118,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:drawableEnd="@drawable/twotone_delete_24" + android:drawableEnd="@drawable/twotone_clear_all_24" android:drawablePadding="6dp" android:text="@string/title_unblock_all" app:layout_constraintStart_toStartOf="parent"