diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/AboutActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/AboutActivity.java index 5c16f8b37..0c16f3b64 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/AboutActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/AboutActivity.java @@ -2,6 +2,7 @@ package com.simplemobiletools.gallery.activities; import android.content.Intent; import android.content.res.Resources; +import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Html; @@ -61,4 +62,15 @@ public class AboutActivity extends AppCompatActivity { final Intent intent = new Intent(getApplicationContext(), LicenseActivity.class); startActivity(intent); } + + @OnClick(R.id.about_facebook) + public void facebookClicked() { + String link = "https://www.facebook.com/simplemobiletools"; + try { + getPackageManager().getPackageInfo("com.facebook.katana", 0); + link = "fb://page/150270895341774"; + } catch (Exception ignored) { + } + startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(link))); + } } diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 1efaa9417..c0132cc57 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -33,11 +33,28 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/about_email" + android:layout_marginTop="@dimen/activity_margin" android:paddingBottom="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin" android:text="@string/third_party_licences_underlined" android:textColor="@color/colorPrimary"/> + + + + 160dp 8dp 24dp + 8dp + 40dp diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 04ec53990..5d7bd7b13 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -32,10 +32,11 @@ About - For more simple apps or source codes please visit:\nhttp://simplemobiletools.com - You can send your feedback or new app suggestions at: + More simple apps and source code at:\nhttp://simplemobiletools.com + Send your feedback or suggestions at: hello@simplemobiletools.com Third party licences + Follow us at: v %1$s Copyright © Simple Mobile Tools %1$d