From 645c9fa2405c39b87fb70886d56a2eb5309cf76f Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 19 Sep 2020 13:07:39 +0200 Subject: [PATCH] Add crowdin link --- .../java/app/fedilab/fedilabtube/AboutActivity.java | 11 +++++++++++ app/src/main/res/layout/activity_about.xml | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/app/src/main/java/app/fedilab/fedilabtube/AboutActivity.java b/app/src/main/java/app/fedilab/fedilabtube/AboutActivity.java index 69ba341..646936f 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/AboutActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/AboutActivity.java @@ -65,6 +65,17 @@ public class AboutActivity extends AppCompatActivity { startActivity(browserIntent); }); + Button translation = findViewById(R.id.translation); + if (BuildConfig.full_instances) { + translation.setVisibility(View.VISIBLE); + } else { + translation.setVisibility(View.GONE); + } + translation.setOnClickListener(view -> { + Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://crowdin.com/project/tubelab")); + startActivity(browserIntent); + }); + //App Name: TextView app_name = findViewById(R.id.app_name); app_name.setText(R.string.app_name); diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 29de560..b50219b 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -284,5 +284,15 @@ android:text="GPL3" tools:ignore="HardcodedText" /> + +