summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-08-03 18:39:21 +0200
committerArne Schwabe <arne@rfc2549.org>2012-08-03 18:39:21 +0200
commita300294c85697837c33fe90e06d23f676185713f (patch)
tree1cc5aa4b3dcc899da9043606e6af1f4d34542791 /src
parent6ce924c8979e4e5aa7f05db706869407a6d12b27 (diff)
Donate with paypal ...
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/AboutFragment.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/AboutFragment.java b/src/de/blinkt/openvpn/AboutFragment.java
index 77132299..b30b95f3 100644
--- a/src/de/blinkt/openvpn/AboutFragment.java
+++ b/src/de/blinkt/openvpn/AboutFragment.java
@@ -4,6 +4,9 @@ import android.app.Fragment;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
+import android.text.Html;
+import android.text.Spanned;
+import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -35,6 +38,14 @@ public class AboutFragment extends Fragment {
ver.setText(getString(R.string.version_info,name,version));
+
+ TextView paypal = (TextView) v.findViewById(R.id.donatestring);
+
+ String donatetext = getActivity().getString(R.string.donatewithpaypal);
+ Spanned htmltext = Html.fromHtml(donatetext);
+ paypal.setText(htmltext);
+ paypal.setMovementMethod(LinkMovementMethod.getInstance());
+
return v;
}