mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
chore: add donation link in About Activity (#4823)
This commit is contained in:
parent
e90b31631e
commit
5a2867057b
@ -34,6 +34,7 @@ class AboutActivity : BaseActivity() {
|
||||
startActivity(Intent.createChooser(sendIntent, null))
|
||||
}
|
||||
|
||||
setupCard(binding.donate, DONATE_URL)
|
||||
setupCard(binding.website, WEBSITE_URL)
|
||||
setupCard(binding.piped, PIPED_GITHUB_URL)
|
||||
setupCard(binding.translate, WEBLATE_URL)
|
||||
@ -108,6 +109,7 @@ class AboutActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val DONATE_URL = "https://github.com/libre-tube/LibreTube#donate"
|
||||
private const val WEBSITE_URL = "https://libretube.dev"
|
||||
private const val GITHUB_URL = "https://github.com/libre-tube/LibreTube"
|
||||
private const val PIPED_GITHUB_URL = "https://github.com/TeamPiped/Piped"
|
||||
|
19
app/src/main/res/drawable/ic_donate.xml
Normal file
19
app/src/main/res/drawable/ic_donate.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="300"
|
||||
android:viewportHeight="300"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:pathData="m267.02,178.97c-0.43,-3.16 -2.16,-7.91 -8.05,-11.94 -11.79,-8.05 -20.85,-3.02 -24.16,0.86l-21.43,22.29c-0.86,-3.45 -2.73,-6.47 -5.18,-8.77 -7.05,-6.76 -17.4,-6.47 -18.55,-6.33l-3.16,0.14c-2.73,0 -8.05,0 -18.84,-0.14 -9.2,-0.14 -12.08,-2.73 -15.96,-5.9 -4.46,-3.88 -10.21,-8.63 -24.16,-8.63 -16.25,0 -26.75,5.32 -32.5,9.49 -4.75,-4.75 -11.22,-7.62 -18.55,-7.62L64.22,162.43c-8.49,0 -15.53,6.9 -15.53,15.53v57.1c0,8.63 7.62,16.4 15.96,16.4h12.23c6.62,0 12.66,-2.59 17.12,-6.9 6.62,2.73 20.14,6.62 43,6.62h64.72c0.72,0 17.83,-0.29 35.09,-23.3l25.89,-35.81c1.44,-1.15 5.18,-6.47 4.31,-13.09zM77.31,239.95L65.09,239.95c-2.16,0 -4.46,-2.59 -4.46,-4.89v-57.1c0,-2.16 1.73,-4.03 4.03,-4.03h12.23c8.2,0 14.81,6.62 14.81,14.81v35.52c-0.14,8.49 -6.62,15.68 -14.38,15.68zM254.22,184.86 L228.04,221.11c-13.52,17.98 -25.46,18.55 -25.74,18.55h-64.72c-18.7,0 -30.2,-2.73 -36.24,-4.89 1.29,-3.31 2.01,-6.76 2.01,-10.5v-35.38c0,-3.16 -0.58,-6.18 -1.58,-9.06 3.88,-2.88 12.08,-7.62 26.32,-7.62 9.78,0 12.8,2.59 16.68,5.9 4.46,3.74 9.92,8.34 23.16,8.63 9.06,0.14 15.68,0.14 19.42,0.14 1.15,0 2.16,0 3.16,-0.14 1.87,0 7.19,0.43 10.07,3.16 1.58,1.58 2.45,3.74 2.45,6.62 0,3.45 -0.72,5.47 -1.73,6.76l-0.58,0.58c-1.15,1.01 -2.45,1.15 -3.6,1.15h-45.59c-3.16,0 -5.75,2.59 -5.75,5.75 0,3.16 2.59,5.75 5.75,5.75h45.3c3.6,0 7.62,-1.15 10.79,-3.74 0.29,-0.29 0.58,-0.43 0.86,-0.72l34.81,-36.24 0.29,-0.29c0.72,-0.86 3.45,-2.73 8.92,1.15 1.87,1.29 2.88,2.59 3.02,3.88 0.43,1.73 -0.86,3.74 -1.29,4.31z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="m127.51,155.09c-14.74,0 -25.17,4.14 -32.06,8.27 -5.3,-3.98 -11.83,-6.4 -18.99,-6.4L64.22,156.96c-11.45,0 -21,9.39 -21,21v57.1c0,11.85 9.7,21.86 21.43,21.86h12.22c6.79,0 13.06,-2.36 18.15,-6.23 7.94,2.83 21.16,5.94 41.97,5.94h64.72c2.18,0 21.18,-1.1 39.47,-25.49l0.03,-0.04 25.92,-35.85 -1.02,1.07c2.13,-1.7 3.29,-3.56 4.61,-6.57 1.32,-3.02 2.29,-7 1.71,-11.49l-0,-0.02 -0,-0.02c-0.6,-4.37 -3.25,-10.84 -10.39,-15.71 -6.87,-4.69 -13.74,-5.9 -19.3,-4.91 -5.56,0.99 -9.61,3.82 -12.11,6.75l0.22,-0.24 -16.13,16.78c-0.87,-1.2 -1.7,-2.44 -2.76,-3.44 -4.51,-4.32 -9.86,-6.25 -14.13,-7.14 -2.14,-0.45 -4.04,-0.64 -5.54,-0.71 -1.49,-0.07 -2.26,-0.07 -3.33,0.06l0.43,-0.04 -3.02,0.14c-2.74,0 -7.96,-0 -18.65,-0.14h-0.01c-8.07,-0.13 -8.61,-1.4 -12.45,-4.55 -4.55,-3.96 -12.56,-9.97 -27.75,-9.97zM127.51,166.03c12.71,0 16.2,3.48 20.57,7.29l0.07,0.06 0.07,0.06c3.78,3.08 9.12,6.97 19.33,7.13h0.01,0.01c10.81,0.14 16.18,0.14 18.91,0.14h0.13l3.5,-0.16 0.21,-0.03c-0.49,0.06 0.46,-0.03 1.46,0.01 0.99,0.05 2.34,0.18 3.81,0.49 2.94,0.61 6.29,1.92 8.82,4.35l0.02,0.02 0.02,0.02c1.72,1.62 3.02,3.74 3.62,6.12l2.4,9.59 28.39,-29.54 0.11,-0.13c0.81,-0.95 2.95,-2.58 5.69,-3.07 2.74,-0.49 6.3,-0.18 11.22,3.18 4.65,3.17 5.45,6.19 5.71,8.15 0.27,2.11 -0.19,4.09 -0.88,5.68 -0.69,1.59 -2.11,2.97 -1.43,2.42l-0.58,0.46 -26.29,36.37c-16.22,21.61 -31.43,21.08 -30.69,21.08h-64.72c-22.25,0 -35.04,-3.77 -40.92,-6.2l-3.31,-1.37 -2.58,2.49c-3.47,3.36 -8.12,5.36 -13.31,5.36L64.66,245.98c-4.95,0 -10.5,-5.52 -10.5,-10.93v-57.1c0,-5.65 4.54,-10.06 10.06,-10.06h12.22c5.91,0 10.92,2.25 14.69,6.02l3.3,3.3 3.78,-2.74c4.98,-3.61 14.24,-8.45 29.29,-8.45zM128.08,166.74c-15.45,0 -25.04,5.34 -29.57,8.7l-3.24,2.4 1.33,3.8c0.83,2.36 1.28,4.75 1.28,7.25v35.38c0,3.04 -0.56,5.76 -1.64,8.51l-2.05,5.25 5.31,1.89c6.73,2.41 18.85,5.21 38.08,5.21h64.72c0.95,0 0.79,-0.03 1.36,-0.11 0.57,-0.08 1.3,-0.21 2.18,-0.42 1.76,-0.43 4.1,-1.21 6.85,-2.6 5.48,-2.78 12.52,-8.02 19.73,-17.61l0.03,-0.04 26.15,-36.21c0.48,-0.64 1.09,-1.54 1.66,-2.94 0.55,-1.35 1.11,-3.27 0.58,-5.71 -0.56,-3.39 -2.8,-5.64 -5.2,-7.3 -6.83,-4.84 -13.67,-3.29 -16.26,-0.18l0.33,-0.37 -0.33,0.33 -34.77,36.21c0.34,-0.35 0.07,-0.21 -0.86,0.71l0.4,-0.37c-2.02,1.65 -4.9,2.5 -7.32,2.5h-45.3c-0.18,0 -0.28,-0.1 -0.28,-0.28 0,-0.18 0.1,-0.29 0.28,-0.29h45.59c1.61,0 4.71,-0.33 7.2,-2.5l0.14,-0.12 0.94,-0.95 0.21,-0.27c1.92,-2.47 2.88,-5.91 2.88,-10.12 0,-3.97 -1.41,-7.85 -4.05,-10.48l-0.05,-0.05 -0.05,-0.05c-5.11,-4.85 -11.12,-4.67 -13.83,-4.67h-0.39L189.73,181.32c-0.5,0.07 -1.24,0.09 -2.39,0.09 -3.74,0 -10.31,-0 -19.32,-0.14 -11.95,-0.26 -15.26,-3.59 -19.71,-7.32 -3.88,-3.3 -9.49,-7.2 -20.23,-7.2zM64.66,168.46c-5.26,0 -9.5,4.42 -9.5,9.5v57.1c0,2.97 1.22,5.2 2.83,6.97 1.61,1.78 3.83,3.38 7.1,3.38h12.22c11.14,0 19.66,-9.84 19.85,-21.05l0,-0.05L97.16,188.75c0,-11.14 -9.14,-20.28 -20.28,-20.28zM128.08,177.68c8.81,0 9.25,1.28 13.14,4.59l0.02,0.01 0.02,0.01c4.45,3.73 12.08,9.59 26.55,9.91h0.02,0.02c9.1,0.14 15.76,0.14 19.5,0.14 1.15,0 2.43,0.02 3.94,-0.2l-0.77,0.05c1.02,0 5.56,1.03 6.26,1.64 0.48,0.5 0.79,0.97 0.79,2.67 0,1.99 -0.23,2.67 -0.41,3.02 -0.02,-0 0,-0 -0.02,-0h-45.59c-6.15,0 -11.22,5.08 -11.22,11.22 0,6.15 5.07,11.22 11.22,11.22h45.3c4.76,0 9.94,-1.45 14.25,-4.97l0.21,-0.17 0.19,-0.19c-0.36,0.36 -0.07,0.21 0.86,-0.72l0.04,-0.04 34.66,-36.1c0.22,0.07 0.58,0.14 2.27,1.35l0.03,0.02 0.03,0.02c0.34,0.24 0.35,0.27 0.47,0.4 0,-0 -0.01,0.02 -0.01,0.02l-0.03,0.04 -0.03,0.04 -26.13,36.18c-6.31,8.38 -11.99,12.41 -15.93,14.41 -1.97,1 -3.51,1.49 -4.49,1.73 -0.49,0.12 -0.84,0.18 -1.04,0.2 -0.19,0.03 -0.78,0.01 0.09,0.01h-64.72c-13.77,0 -23.33,-1.53 -29.49,-3.1 0.46,-2.2 0.73,-4.47 0.73,-6.82v-35.38c0,-2.29 -0.32,-4.48 -0.77,-6.63 3.88,-2.2 10.15,-4.59 20.04,-4.59zM66.1,179.4h10.78c5.26,0 9.35,4.09 9.35,9.35v35.43c-0.1,5.76 -4.52,10.3 -8.91,10.3L66.1,234.48ZM66.1,234.7c-0,-0 0.01,0 0.01,0 -0.08,-0.09 -0.01,-0.31 -0.01,0.36z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="m154.96,138.93c-2.56,0 -5.29,-0.91 -7.48,-2.56 -38.34,-30.3 -47.46,-47.46 -48.92,-50.75 -2.56,-4.93 -3.83,-10.59 -3.83,-16.25 0,-19.35 15.7,-35.05 35.05,-35.05 10.95,0 19.72,6.39 25.74,13.87 6.02,-7.48 14.79,-13.87 25.74,-13.87 19.35,0 35.05,15.7 35.05,35.05 0,9.68 -4.75,17.52 -8.4,22.64 -6.02,8.58 -18.62,23.37 -45.09,44.18 -2.56,1.83 -5.11,2.74 -7.85,2.74zM129.58,49.12c-11.14,0 -20.26,9.13 -20.26,20.26 0,3.29 0.73,6.57 2.37,9.49l0.37,0.73c0,0 7.12,15.33 43.08,44 25.19,-20.08 36.33,-33.59 40.71,-39.8 4.02,-5.66 5.84,-10.04 5.84,-14.24 0,-11.32 -9.13,-20.45 -20.45,-20.45 -7.67,0 -14.79,7.48 -18.26,14.6 -1.46,2.92 -4.38,4.75 -7.48,4.75 -3.1,0 -6.21,-1.83 -7.48,-4.75 -3.47,-7.12 -10.59,-14.6 -18.44,-14.6z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="m129.77,30.21c-21.58,0 -39.17,17.59 -39.17,39.17 0,6.22 1.39,12.45 4.23,17.99 1.93,4.31 11.53,21.76 50.09,52.24l0.04,0.03 0.04,0.03c2.92,2.19 6.42,3.38 9.96,3.38 3.65,0 7.16,-1.3 10.24,-3.51l0.08,-0.05 0.08,-0.06c26.69,-20.99 39.59,-36.05 45.89,-45.02l0.01,-0.01c3.83,-5.36 9.16,-14 9.16,-25.02 0,-21.58 -17.59,-39.17 -39.17,-39.17 -10.73,0 -19.34,5.41 -25.74,12.02 -6.4,-6.61 -15.01,-12.02 -25.74,-12.02zM129.77,38.45c9.35,0 17.01,5.48 22.53,12.34l3.21,3.99 3.21,-3.99c5.52,-6.86 13.18,-12.34 22.53,-12.34 17.12,0 30.93,13.81 30.93,30.93 0,8.33 -4.16,15.38 -7.63,20.24l-0.01,0.01 -0.01,0.01c-5.74,8.18 -18.02,22.65 -44.15,43.22 -2.01,1.42 -3.6,1.95 -5.41,1.95 -1.57,0 -3.54,-0.64 -5,-1.72C112.03,103.09 103.35,86.28 102.31,83.95l-0.05,-0.11 -0.06,-0.11c-2.22,-4.28 -3.37,-9.31 -3.37,-14.35 0,-17.12 13.81,-30.93 30.93,-30.93zM129.58,45c-13.39,0 -24.38,10.99 -24.38,24.38 0,3.9 0.87,7.9 2.9,11.51l-0.09,-0.18 0.37,0.73 -0.05,-0.11c0,0 2.17,4.52 8.65,12.18 6.48,7.66 17.45,18.83 35.6,33.3l2.57,2.05 2.57,-2.05c25.42,-20.27 36.84,-34.04 41.5,-40.63l0.01,-0.01c4.25,-5.99 6.59,-11.22 6.59,-16.61 0,-13.53 -11.03,-24.56 -24.56,-24.56 -5.17,0 -9.73,2.45 -13.41,5.64 -3.67,3.2 -6.58,7.23 -8.55,11.27l0.02,-0.04c-0.78,1.57 -2.31,2.47 -3.8,2.47 -1.49,0 -3.16,-1.02 -3.71,-2.28l-0.03,-0.08 -0.04,-0.08c-1.97,-4.05 -4.88,-8.08 -8.58,-11.28 -3.7,-3.2 -8.32,-5.63 -13.56,-5.63zM129.58,53.24c2.62,0 5.48,1.31 8.17,3.63 2.69,2.32 5.07,5.59 6.57,8.66l-0.07,-0.15c2.01,4.59 6.54,7.21 11.26,7.21 4.72,0 9.03,-2.75 11.17,-7.02l0.01,-0.02 0.01,-0.02c1.5,-3.07 3.88,-6.34 6.55,-8.67 2.67,-2.33 5.5,-3.62 8,-3.62 9.1,0 16.33,7.22 16.33,16.33 0,3 -1.31,6.53 -5.08,11.86l-0,0 -0,0c-3.95,5.59 -14.45,18.2 -37.37,36.8 -16.12,-13.08 -26.12,-23.25 -31.86,-30.04 -6.07,-7.18 -7.46,-10.32 -7.46,-10.32l-0.03,-0.05 -0.44,-0.87 -0.05,-0.09c-1.25,-2.22 -1.85,-4.8 -1.85,-7.47 0,-8.88 7.26,-16.14 16.14,-16.14z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
@ -37,6 +37,17 @@
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/donate"
|
||||
style="@style/AboutCard">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/AboutItem"
|
||||
android:text="@string/donate"
|
||||
app:drawableStartCompat="@drawable/ic_donate" />
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/website"
|
||||
style="@style/AboutCard">
|
||||
|
@ -62,6 +62,7 @@
|
||||
<string name="instance">Instance</string>
|
||||
<string name="customization">Adjustments</string>
|
||||
<string name="website">Website</string>
|
||||
<string name="donate">Donate</string>
|
||||
<string name="uploaderAndVideoCount">%1$s • %2$d videos</string>
|
||||
<string name="subscriberAndVideoCounts">%1$s subscribers • %2$d videos</string>
|
||||
<string name="videoCount">%1$d videos</string>
|
||||
|
Loading…
Reference in New Issue
Block a user