diff --git a/app/src/main/java/com/sdex/activityrunner/AboutActivity.kt b/app/src/main/java/com/sdex/activityrunner/AboutActivity.kt
index a0f55296..ffbad3e5 100644
--- a/app/src/main/java/com/sdex/activityrunner/AboutActivity.kt
+++ b/app/src/main/java/com/sdex/activityrunner/AboutActivity.kt
@@ -13,9 +13,7 @@ import kotlinx.android.synthetic.main.activity_about.*
class AboutActivity : BaseActivity() {
- override fun getLayout(): Int {
- return R.layout.activity_about
- }
+ override fun getLayout() = R.layout.activity_about
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
@@ -31,8 +29,17 @@ class AboutActivity : BaseActivity() {
dialog.show(supportFragmentManager, DonateDialog.TAG)
}
- feedback.setOnClickListener {
- AppUtils.sendFeedback(this)
+ version.setOnClickListener {
+ val dialog = DonateDialog.newInstance()
+ dialog.show(supportFragmentManager, DonateDialog.TAG)
+ }
+
+ source_code.setOnClickListener {
+ IntentUtils.openBrowser(this, AppUtils.REPOSITORY)
+ }
+
+ issues_tracker.setOnClickListener {
+ IntentUtils.openBrowser(this, AppUtils.ISSUES_TRACKER)
}
openSource.setOnClickListener {
diff --git a/app/src/main/java/com/sdex/activityrunner/donate/DonateDialog.kt b/app/src/main/java/com/sdex/activityrunner/donate/DonateDialog.kt
index 8404e643..570787f5 100644
--- a/app/src/main/java/com/sdex/activityrunner/donate/DonateDialog.kt
+++ b/app/src/main/java/com/sdex/activityrunner/donate/DonateDialog.kt
@@ -14,7 +14,7 @@ class DonateDialog : BaseDialogFragment() {
.setTitle(R.string.about_donation)
.setMessage(R.string.donate_message)
.setPositiveButton(R.string.donate_action_text) { _, _ ->
- AppUtils.openLink(activity, "https://www.buymeacoffee.com/sdex")
+ AppUtils.openLink(requireActivity(), "https://www.buymeacoffee.com/sdex")
}
.create()
}
diff --git a/app/src/main/java/com/sdex/commons/util/AppUtils.java b/app/src/main/java/com/sdex/commons/util/AppUtils.java
index ca8ca555..aad8e128 100644
--- a/app/src/main/java/com/sdex/commons/util/AppUtils.java
+++ b/app/src/main/java/com/sdex/commons/util/AppUtils.java
@@ -10,7 +10,8 @@
public class AppUtils {
public static final String PP = "https://cdn.rawgit.com/sdex/docs/58d79c9/am_pp_2.html";
- public static final String EMAIL = "activitymanagerapp@gmail.com";
+ public static final String REPOSITORY = "https://github.com/sdex/ActivityManager";
+ public static final String ISSUES_TRACKER = REPOSITORY + "/issues";
public static void openLink(Context context, String url) {
try {
@@ -20,10 +21,6 @@ public static void openLink(Context context, String url) {
}
}
- public static void sendFeedback(Context context) {
- sendEmail(context, EMAIL, "ActivityManager app feedback", "");
- }
-
public static void sendEmail(Context context, String address, String subject, String text) {
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.putExtra(Intent.EXTRA_SUBJECT, subject);
diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml
index 96e5cdc2..79fc0a1a 100644
--- a/app/src/main/res/layout/activity_about.xml
+++ b/app/src/main/res/layout/activity_about.xml
@@ -22,18 +22,19 @@
android:layout_height="wrap_content"
android:orientation="vertical">
-
@@ -60,20 +61,61 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -86,12 +128,13 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:srcCompat="@drawable/ic_about_feedback" />
+ app:srcCompat="@drawable/ic_about_open_source"
+ app:tint="@color/icon_tint" />
@@ -113,20 +156,20 @@
-
+
-
@@ -139,7 +182,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:srcCompat="@drawable/ic_about_open_source" />
+ app:srcCompat="@drawable/ic_about_open_source"
+ app:tint="@color/icon_tint" />
-
+
-
@@ -178,7 +222,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:srcCompat="@drawable/ic_about_privacy_policy" />
+ app:srcCompat="@drawable/ic_about_privacy_policy"
+ app:tint="@color/icon_tint" />
-
+
-
@@ -216,7 +262,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:srcCompat="@drawable/ic_about_version" />
+ app:srcCompat="@drawable/ic_about_version"
+ app:tint="@color/icon_tint" />
-
+
+ app:showAsAction="never" />
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index 814615b7..e73f1ecb 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -4,6 +4,7 @@
#fafafa
@color/darker_gray
#222222
+ #222222
#2a2a2a
#e5e5e5
#323232
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index c485e325..0cee817e 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -53,7 +53,7 @@
Поддержать разработку
Версия
- Связаться с автором
+ Связаться с автором
Сообщить о проблеме, задать вопрос…
Библиотеки с открытым кодом
Политика конфиденциальности
diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml
index 78ca16fe..0107281d 100644
--- a/app/src/main/res/values-uk/strings.xml
+++ b/app/src/main/res/values-uk/strings.xml
@@ -44,7 +44,7 @@
Підтримати розробку
Версія
- Зв\'язатися з автором
+ Зв\'язатися з автором
Бібліотеки з відкритим кодом
Введіть ключ
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 411fbfa3..d63f03bb 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -57,14 +57,15 @@
Support development
+ Source code
Version
%1$s (%2$d)
- Send feedback
+ Issues tracker
Report a problem, aks a question…
Open source libraries
Privacy policy
- If you like the app, please consider making some cash donation
+ If you like the app, please consider making some donation
Donate
Input key