add reddit button (#310)

This commit is contained in:
OncePunchedMan 2022-01-06 17:37:33 +01:00 committed by GitHub
parent 67c506d5a5
commit 7496707336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -35,10 +35,11 @@ class AboutLinksPreference @JvmOverloads constructor(context: Context, attrs: At
setTooltip(contentDescription.toString())
setOnClickListener { context.openInBrowser("https://facebook.com/tachiyomiorg") }
}
*/
holder.findViewById(R.id.btn_reddit).apply {
setTooltip(contentDescription.toString())
setOnClickListener { context.openInBrowser("https://www.reddit.com/r/Tachiyomi") }
}*/
setOnClickListener { context.openInBrowser("https://www.reddit.com/r/Aniyomi") }
}
holder.findViewById(R.id.btn_github).apply {
setTooltip(contentDescription.toString())
setOnClickListener { context.openInBrowser("https://github.com/jmir1/aniyomi") }

View file

@ -47,7 +47,7 @@
android:padding="16dp"
android:src="@drawable/ic_facebook_24dp"
app:tint="?attr/colorAccent"
tools:ignore="HardcodedText" />
tools:ignore="HardcodedText" />-->
<ImageButton
android:id="@+id/btn_reddit"
@ -58,7 +58,7 @@
android:padding="16dp"
android:src="@drawable/ic_reddit_24dp"
app:tint="?attr/colorAccent"
tools:ignore="HardcodedText" />-->
tools:ignore="HardcodedText" />
<ImageButton
android:id="@+id/btn_github"