More profile URI icons

(cherry picked from commit f48340d6fd95d92ebc24ab6522f8884470daf896)
This commit is contained in:
Stephen Paul Weber 2024-10-29 17:30:25 +01:00 committed by Arne
parent 541ebd2bf4
commit eb314d9a86
5 changed files with 36 additions and 0 deletions

View file

@ -859,6 +859,22 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
binding.command.setText(uri.getSchemeSpecificPart());
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.ic_email_24dp), null, null, null);
binding.command.setCompoundDrawablePadding(20);
} else if (uri.getScheme().equals("bitcoin")) {
binding.command.setText(uri.getSchemeSpecificPart());
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.bitcoin_24dp), null, null, null);
binding.command.setCompoundDrawablePadding(20);
} else if (uri.getScheme().equals("bitcoincash")) {
binding.command.setText(uri.getSchemeSpecificPart());
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.bitcoin_cash_24dp), null, null, null);
binding.command.setCompoundDrawablePadding(20);
} else if (uri.getScheme().equals("https") && "liberapay.com".equals(uri.getHost())) {
binding.command.setText(uri.getPath().substring(1));
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.liberapay), null, null, null);
binding.command.setCompoundDrawablePadding(20);
} else if (uri.getScheme().equals("https") && ("www.patreon.com".equals(uri.getHost()) || "patreon.com".equals(uri.getHost()))) {
binding.command.setText(uri.getPath().replaceAll("^/(?:c/)?", ""));
binding.command.setCompoundDrawablesRelativeWithIntrinsicBounds(getDrawable(R.drawable.patreon), null, null, null);
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);

View file

@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="64"
android:viewportWidth="64" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"
android:tint="?attr/colorControlNormal">
<path android:fillColor="@android:color/white" android:pathData="m31.738,0c-14.246,0.1072 -27.171,9.7956 -30.775,24.262 -4.276,17.142 6.1569,34.505 23.295,38.779 17.145,4.275 34.507,-6.1578 38.781,-23.301 4.274,-17.144 -6.1568,-34.509 -23.301,-38.783 -2.6781,-0.6678 -5.3618,-0.9769 -8,-0.957zM30.6853,11.15 L34.1951,12.025 32.7849,17.6773c0.942,0.215 1.8895,0.4321 2.8125,0.6621l1.4004,-5.6152 3.5117,0.875 -1.4375,5.7676c4.433,1.527 7.6741,3.8162 7.0371,8.0742 -0.461,3.117 -2.1884,4.6253 -4.4824,5.1543 3.15,1.64 4.7516,4.1556 3.2246,8.5156 -1.895,5.415 -6.3958,5.8713 -12.383,4.7383l-1.4531,5.8242 -3.5117,-0.875 1.4336,-5.7461c-0.91,-0.226 -1.8389,-0.4666 -2.7969,-0.7266l-1.4395,5.7734 -3.5078,-0.875 1.4531,-5.834c-0.82,-0.21 -1.652,-0.4335 -2.502,-0.6465l-4.5684,-1.1387 1.7422,-4.0195s2.5877,0.6877 2.5527,0.6367c0.994,0.246 1.4334,-0.402 1.6074,-0.834l2.2969,-9.2051c0.129,0.031 0.2541,0.0628 0.3711,0.0918 -0.14,-0.056 -0.2672,-0.0922 -0.3652,-0.1172l1.6387,-6.5703c0.043,-0.746 -0.2147,-1.686 -1.6367,-2.041 0.055,-0.037 -2.5508,-0.6348 -2.5508,-0.6348l0.9355,-3.75 4.8418,1.209 -0.0039,0.0176c0.728,0.181 1.4782,0.3533 2.2422,0.5273l1.4375,-5.7656zM31.8396,21.824 L30.0916,28.8357c1.982,0.494 8.092,2.509 9.082,-1.457 1.031,-4.137 -5.352,-5.0607 -7.334,-5.5547zM29.2087,32.373 L27.281,40.1015c2.38,0.591 9.7216,2.9479 10.807,-1.4121 1.134,-4.547 -6.4989,-5.7224 -8.8789,-6.3164z"/>
</vector>

View file

@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="788"
android:viewportWidth="788" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"
android:tint="?attr/colorControlNormal">
<path android:fillColor="@android:color/white" android:pathData="m394,0a394,394 0,0 0,-394 394,394 394,0 0,0 394,394 394,394 0,0 0,394 -394,394 394,0 0,0 -394,-394zM378,147.1 L395.9,216.5c55.7,-9.3 101.2,0.299 121,45.199 13.1,35.7 2.399,63.001 -18.701,81.701 34.3,3.5 75.602,34.499 81.602,72.299 9.4,62.7 -36.5,103.7 -101.5,119.5l18.1,70.102 -42.201,10.898 -18,-70.299c-11,2.9 -22.298,5.7 -33.898,8.4l18.1,70.699 -42.201,10.9 -18.1,-70.201c-9.9,2.5 -85.299,21.801 -85.299,21.801l-4.602,-52.699s31.401,-7.5 30.701,-7.9c11.8,-3.2 12.799,-12.6 12.199,-18.1l-49.199,-190.2c-3.8,-8.1 -11.9,-16.699 -29.1,-12.199 0.3,-0.7 -30.701,8 -30.701,8l-11.6,-45.201s76.099,-19.5 85.199,-22.1l-17.898,-69.4 42.199,-10.898 17.6,68.799c11.3,-3.2 22.701,-5.6 33.801,-8.4l-17.6,-69.199 42.199,-10.9zM399.533,270.82c-24.981,-0.541 -52.789,9.959 -66.232,13.277l22.6,84.301c23.8,-6.1 97.599,-12.501 88.699,-67.701 -7.919,-22.356 -25.637,-29.456 -45.066,-29.877zM446.576,395.67c-30.081,-0.207 -65.088,11.605 -81.176,15.824l24.799,92.9c28.5,-7.5 114.8,-15.101 106.4,-77.201 -6.213,-23.931 -26.627,-31.362 -50.023,-31.523z"/>
</vector>

View file

@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="80"
android:viewportWidth="80" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"
android:tint="?attr/colorControlNormal">
<path android:fillColor="@android:color/white" android:pathData="m10,0c-5.54,0 -10,4.46 -10,10v60c0,5.54 4.46,10 10,10h60c5.54,0 10,-4.46 10,-10v-60c0,-5.54 -4.46,-10 -10,-10h-60zM38.576,13.318 L30.9822,44.791c-0.1458,0.655 -0.2278,1.2569 -0.2461,1.8027s0.0805,1.029 0.2988,1.4473c0.2183,0.4183 0.5928,0.7556 1.1211,1.0098 0.5283,0.2542 1.2654,0.4216 2.2129,0.4941l-1.6387,6.7207c-2.5867,0 -4.6188,-0.3386 -6.0938,-1.0117 -1.475,-0.6731 -2.5299,-1.5923 -3.1699,-2.7598 -0.64,-1.1675 -0.946,-2.4939 -0.9277,-4.0156 0.0183,-1.5217 0.2272,-3.1236 0.6289,-4.8359l6.9395,-29.014 8.4688,-1.3105zM51.629,26.328c2.1858,0 3.7993,0.3086 5.2734,0.9277 1.4741,0.6191 2.6851,1.4668 3.6328,2.541s1.6486,2.3311 2.1035,3.7695c0.4549,1.4384 0.6836,2.9791 0.6836,4.6191 0,2.6583 -0.4382,5.0888 -1.3223,7.293 -0.8841,2.2042 -2.0753,4.1084 -3.623,5.7109 -1.5477,1.6025 -3.4058,2.8515 -5.5762,3.748s-4.524,1.334 -7.0723,1.334c-1.2391,0 -2.4785,-0.1109 -3.7168,-0.3301l-2.459,9.8906h-8.0859l9.0664,-37.811c1.46,-0.4367 3.1262,-0.8292 5.002,-1.1758s3.908,-0.5176 6.0938,-0.5176zM50.5899,33.1581c-1.1667,0 -2.2593,0.109 -3.2793,0.3281l-3.8242,15.9c0.6192,0.1458 1.3841,0.2129 2.2949,0.2129 1.42,0 2.713,-0.2579 3.8789,-0.7871s2.1585,-1.2654 2.9785,-2.2129 1.4561,-2.0833 1.9121,-3.4141c0.456,-1.3308 0.6836,-2.7951 0.6836,-4.3984 0,-1.6033 -0.3479,-2.8968 -1.0391,-3.9902 -0.6912,-1.0934 -1.8938,-1.6387 -3.6055,-1.6387z"/>
</vector>

View file

@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="1080"
android:viewportWidth="1080" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"
android:tint="?attr/colorControlNormal">
<path android:fillColor="@android:color/white" android:pathData="M1033.05,324.45c-0.19,-137.9 -107.59,-250.92 -233.6,-291.7c-156.48,-50.64 -362.86,-43.3 -512.28,27.2C106.07,145.41 49.18,332.61 47.06,519.31c-1.74,153.5 13.58,557.79 241.62,560.67c169.44,2.15 194.67,-216.18 273.07,-321.33c55.78,-74.81 127.6,-95.94 216.01,-117.82C929.71,603.22 1033.27,483.3 1033.05,324.45z"/>
</vector>