diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java b/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java index f1ee90ee78..1d921b2ab7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java @@ -191,6 +191,8 @@ public class FragmentDialogOpenLink extends FragmentDialogBase { cbSecure.setText( secure ? R.string.title_link_https : R.string.title_link_http); + cbSecure.setCompoundDrawablesRelativeWithIntrinsicBounds( + 0, 0, secure ? 0 : R.drawable.twotone_http_24, 0); cbSecure.setTextColor(Helper.resolveColor(context, secure ? android.R.attr.textColorSecondary : R.attr.colorWarning)); cbSecure.setTypeface( diff --git a/app/src/main/res/drawable/twotone_http_24.xml b/app/src/main/res/drawable/twotone_http_24.xml new file mode 100644 index 0000000000..b93de26234 --- /dev/null +++ b/app/src/main/res/drawable/twotone_http_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layout/dialog_open_link.xml b/app/src/main/res/layout/dialog_open_link.xml index 650a91831c..a09600c2c8 100644 --- a/app/src/main/res/layout/dialog_open_link.xml +++ b/app/src/main/res/layout/dialog_open_link.xml @@ -157,6 +157,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" + android:drawableEnd="@drawable/twotone_http_24" + android:drawablePadding="6dp" android:text="@string/title_link_http" android:textColor="?attr/colorWarning" android:textStyle="bold"