Skip to content
Snippets Groups Projects
Commit d7f98b88 authored by Pierre Nicolas's avatar Pierre Nicolas :joy: Committed by Adrien Béraud
Browse files

donation: add util method to open donate web page

GitLab: #1363
GitLab: jami-project#1330

Change-Id: Icb2aaa0aafad89acbbe7bb4ba2bc755b35685984
parent 373aa956
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,12 @@ object ActionHelper {
fun View.setPadding(padding: Padding) =
setPadding(padding.pixelsLeft, padding.pixelsTop, padding.pixelsRight, padding.pixelsBottom)
fun openJamiDonateWebPage(context: Context) {
context.startActivity(
Intent(Intent.ACTION_VIEW, android.net.Uri.parse(context.getString(R.string.donation_url)))
)
}
/**
* Share the given username with the system share intent.
* @param context the context
......
......@@ -471,5 +471,8 @@ along with this program; if not, write to the Free Software
<string name="donation_card_description">If you enjoy using Jami and believe in our mission, would you make a donation?</string>
<string name="donation_card_not_now">Not now</string>
<string name="donation_donate">Donate</string>
<string name="donation_setting_title">Donation reminder</string>
<string name="donation_setting_description">Enable the donation reminder</string>
<string name="donation_url" translatable="false">https://crowdfunding.lfx.linuxfoundation.org/projects/jami-a-gnu-package</string>
</resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment