[Android] Make the link clickable
Ludovic Fauvet
git at videolan.org
Mon Jun 25 10:47:47 CEST 2012
android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jun 25 10:46:08 2012 +0200| [32c314d10dc67445e3554940a5dccf46f2256773] | committer: Ludovic Fauvet
Make the link clickable
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=32c314d10dc67445e3554940a5dccf46f2256773
---
vlc-android/src/org/videolan/vlc/gui/AboutMainFragment.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/AboutMainFragment.java b/vlc-android/src/org/videolan/vlc/gui/AboutMainFragment.java
index 4d37911..fc5bac5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AboutMainFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AboutMainFragment.java
@@ -26,6 +26,7 @@ import org.videolan.vlc.Util;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Html;
+import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -45,6 +46,7 @@ public class AboutMainFragment extends Fragment {
View v = inflater.inflate(R.layout.about_main, container, false);
TextView link = (TextView) v.findViewById(R.id.main_link);
link.setText(Html.fromHtml(this.getString(R.string.about_link)));
+ link.setMovementMethod(LinkMovementMethod.getInstance());
String builddate = Util.readAsset(getActivity(), "builddate.txt", "Unknown");
String builder = Util.readAsset(getActivity(), "builder.txt", "unknown");
More information about the Android
mailing list