From 2ccb2f792b601198536a8da765c61d15385a4eaf Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 3 Aug 2012 18:39:21 +0200 Subject: Donate with paypal ... --- src/de/blinkt/openvpn/AboutFragment.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/de/blinkt/openvpn') diff --git a/src/de/blinkt/openvpn/AboutFragment.java b/src/de/blinkt/openvpn/AboutFragment.java index 7713229..b30b95f 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; } -- cgit v1.2.3