diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/AboutActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/AboutActivity.kt index e8f34aa98..6acbb3150 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/AboutActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/AboutActivity.kt @@ -18,12 +18,14 @@ class AboutActivity : SimpleActivity() { setContentView(R.layout.activity_about) setupEmail() - setupCopyright() + setupMoreApps() setupRateUs() setupInvite() setupLicense() + setupDonate() setupFacebook() setupGPlus() + setupCopyright() } private fun setupEmail() { @@ -34,6 +36,12 @@ class AboutActivity : SimpleActivity() { about_email.movementMethod = LinkMovementMethod.getInstance() } + private fun setupMoreApps() { + about_more_apps.setOnClickListener { + startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=9070296388022589266"))) + } + } + private fun setupCopyright() { val versionName = BuildConfig.VERSION_NAME val year = Calendar.getInstance().get(Calendar.YEAR) @@ -76,6 +84,12 @@ class AboutActivity : SimpleActivity() { } } + fun setupDonate() { + about_donate.setOnClickListener { + startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("http://simplemobiletools.github.io/donate"))) + } + } + fun setupFacebook() { about_facebook.setOnClickListener { var link = "https://www.facebook.com/simplemobiletools" diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index a26f39e11..c8c3c607b 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -36,12 +36,22 @@ android:text="@string/email"/> + + @@ -66,10 +76,20 @@ android:textColor="@color/colorPrimary"/> + +