Skip to content
Snippets Groups Projects
Verified Commit 72908475 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Add donation link to about menu

parent 7e8294cc
Branches
Tags
No related merge requests found
Pipeline #278 passed
......@@ -55,6 +55,9 @@ class AboutFragment : DaggerFragment() {
@BindView(R.id.action_github)
lateinit var github: Button
@BindView(R.id.action_donate)
lateinit var donate: Button
@BindView(R.id.action_privacy_policy)
lateinit var privacyPolicy: Button
......@@ -93,6 +96,12 @@ class AboutFragment : DaggerFragment() {
context?.startActivity(intent)
}
donate.setOnClickListener {
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse("https://www.patreon.com/justjanne")
context?.startActivity(intent)
}
privacyPolicy.setOnClickListener {
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse("http://quasseldroid.info/privacy-policy/")
......
......@@ -88,6 +88,13 @@
android:layout_height="wrap_content"
android:text="@string/label_github" />
<Button
android:id="@+id/action_donate"
style="@style/Widget.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/advertisement_support_button" />
</LinearLayout>
<TextView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment