Fix invisible icon

This commit is contained in:
Arne 2025-01-28 10:06:16 +01:00
parent ccd1ae727b
commit 906e3043cc
2 changed files with 7 additions and 2 deletions

View file

@ -850,7 +850,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.ic_chat_black_24dp), null, null, null);
binding.command.setCompoundDrawablePadding(20);
} else if (item.getName().equals("url")) {
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.ic_link_24dp), null, null, null);
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.outline_circle_24), null, null, null);
binding.command.setCompoundDrawablePadding(20);
}
@ -898,7 +898,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
binding.command.setCompoundDrawablePadding(20);
} else if (uri.getScheme().equals("http") || uri.getScheme().equals("https")) {
binding.command.setText(uri.toString());
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.ic_link_24dp), null, null, null);
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.outline_circle_24), null, null, null);
binding.command.setCompoundDrawablePadding(20);
} else {
binding.command.setText(uri.toString());

View file

@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="?colorControlNormal" android:viewportHeight="960" android:viewportWidth="960" android:width="24dp">
<path android:fillColor="@android:color/white" android:pathData="M480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880ZM480,800Q614,800 707,707Q800,614 800,480Q800,346 707,253Q614,160 480,160Q346,160 253,253Q160,346 160,480Q160,614 253,707Q346,800 480,800ZM480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Z"/>
</vector>