add ClickListener to open Translation URL
This commit is contained in:
parent
7fa57621d9
commit
1be577cd3f
@ -49,6 +49,7 @@ public class AboutFragment extends Fragment {
|
|||||||
final TextView appVerBuild;
|
final TextView appVerBuild;
|
||||||
final TextView donationLink;
|
final TextView donationLink;
|
||||||
final TextView donationLinkPatreon;
|
final TextView donationLinkPatreon;
|
||||||
|
final TextView translateLink;
|
||||||
final TextView creditsButton;
|
final TextView creditsButton;
|
||||||
final TextView sponsorsButton;
|
final TextView sponsorsButton;
|
||||||
final TextView appWebsite;
|
final TextView appWebsite;
|
||||||
@ -64,6 +65,7 @@ public class AboutFragment extends Fragment {
|
|||||||
creditsButton = v.findViewById(R.id.creditsButton);
|
creditsButton = v.findViewById(R.id.creditsButton);
|
||||||
donationLink = v.findViewById(R.id.donationLink);
|
donationLink = v.findViewById(R.id.donationLink);
|
||||||
donationLinkPatreon = v.findViewById(R.id.donationLinkPatreon);
|
donationLinkPatreon = v.findViewById(R.id.donationLinkPatreon);
|
||||||
|
translateLink = v.findViewById(R.id.translateLink);
|
||||||
sponsorsButton = v.findViewById(R.id.sponsorsButton);
|
sponsorsButton = v.findViewById(R.id.sponsorsButton);
|
||||||
appWebsite = v.findViewById(R.id.appWebsite);
|
appWebsite = v.findViewById(R.id.appWebsite);
|
||||||
appRepo = v.findViewById(R.id.appRepo);
|
appRepo = v.findViewById(R.id.appRepo);
|
||||||
@ -90,6 +92,16 @@ public class AboutFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
translateLink.setOnClickListener(new View.OnClickListener() {
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent();
|
||||||
|
intent.setAction(Intent.ACTION_VIEW);
|
||||||
|
intent.addCategory(Intent.CATEGORY_BROWSABLE);
|
||||||
|
intent.setData(Uri.parse("https://crowdin.com/project/gitnex"));
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
appWebsite.setOnClickListener(new View.OnClickListener() {
|
appWebsite.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user