Fix #9 Links in About-Page not clickable

This commit is contained in:
Stefan Niedermann 2016-01-24 17:48:53 +01:00
parent c6a752f9a1
commit e8e8c0c9cb
3 changed files with 15 additions and 2 deletions

View file

@ -2,15 +2,20 @@ package it.niedermann.owncloud.notes.android.fragment.about;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import it.niedermann.owncloud.notes.R;
public class AboutFragmentContributingTab extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_about_contribution_tab, container, false);
View v = inflater.inflate(R.layout.fragment_about_contribution_tab, container, false);
((TextView) v.findViewById(R.id.about_source)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView) v.findViewById(R.id.about_issues)).setMovementMethod(LinkMovementMethod.getInstance());
return v;
}
}

View file

@ -2,15 +2,19 @@ package it.niedermann.owncloud.notes.android.fragment.about;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import it.niedermann.owncloud.notes.R;
public class AboutFragmentCreditsTab extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_about_credits_tab, container, false);
View v = inflater.inflate(R.layout.fragment_about_credits_tab, container, false);
((TextView) v.findViewById(R.id.about_maintainer)).setMovementMethod(LinkMovementMethod.getInstance());
return v;
}
}

View file

@ -4,10 +4,12 @@ import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import it.niedermann.owncloud.notes.R;
@ -23,6 +25,8 @@ public class AboutFragmentLicenseTab extends Fragment {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(GNU_GENERAL_PUBLIC_LICENSE)));
}
});
((TextView) v.findViewById(R.id.about_app_icon_disclaimer)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView) v.findViewById(R.id.about_icons_disclaimer)).setMovementMethod(LinkMovementMethod.getInstance());
return v;
}
}