From 65abeb53035b0456ff890274c9e6df386432d081 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 19 Jun 2016 13:07:18 +0200 Subject: [PATCH] add a Facebook follow image at the About section --- .../gallery/activities/AboutActivity.java | 12 ++++++++++++ app/src/main/res/layout/activity_about.xml | 17 +++++++++++++++++ app/src/main/res/mipmap-hdpi/facebook.png | Bin 0 -> 1116 bytes app/src/main/res/mipmap-mdpi/facebook.png | Bin 0 -> 734 bytes app/src/main/res/mipmap-xhdpi/facebook.png | Bin 0 -> 1417 bytes app/src/main/res/mipmap-xxhdpi/facebook.png | Bin 0 -> 2309 bytes app/src/main/res/mipmap-xxxhdpi/facebook.png | Bin 0 -> 3038 bytes app/src/main/res/values/dimens.xml | 2 ++ app/src/main/res/values/strings.xml | 5 +++-- 9 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/mipmap-hdpi/facebook.png create mode 100644 app/src/main/res/mipmap-mdpi/facebook.png create mode 100644 app/src/main/res/mipmap-xhdpi/facebook.png create mode 100644 app/src/main/res/mipmap-xxhdpi/facebook.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/facebook.png 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"/> + + + + Fh31Yfk5sog(3}&ks^drAgVN}EFqLG6{3i!=t7AENVuXvqM<=Z&>$KRMI^up z2^L^O&cyb;Hx%#Qz5Ts=jtwK7yq=q#{dRU{c6D<0;`^s&hQ$?CT?P7x2mq?6QV(gz zX#M}l1l7oxw7&5>cBhI~3>00LVX>Ca42vtkc^QE;h5#b8ApfC=VUCLPn(t$%BO@`x z{{yC82&9h4s!`}$`tClgqwstu^&O<2BO-xuDl`X-m;y$G*<-!d<2IMx{hYrCyUx5k z77ZUp6(>6W6#w`hedr{YF08Qh@B+ZNaBZ3E6&Pt8x8FMvvKMk-JYB7iZA6)$JI3XU zFLC<*<53XTzC_ins63V~0nC)>*mCadGo4`k$<3O1DkprHNzqYN6s6xQSb1?N3FFR- zubVtF{G-yar0e0Bm{a%mSX`J77Ws2~z|{}G;JfcP*e}bGdCp(A_dp64C|cpMT#D|; zE&y0K(ZiT9Iv;)dHJ^O;En;$11yID~m|_;+JWs9U=TUe}-W`QfN2mryyxhC zxVFiAAAA*TBD~825UszQu$fsz-ypU9TJe&vUdlVs85Va@tbqU> zU63lER1>@ih#=CIc&dGMsxlkI8+NRIhU5HU- z5G)+~SP(jniKRaR9#tI}RbAIgC&oMl(SWos$wR>?$a*frVomdXP*y?vA|hRW;W)}4 ivs85etnZY&YySezNqsEOLAJ600000p(JgjC zQ3*;E6>QW%D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/facebook.png b/app/src/main/res/mipmap-xxhdpi/facebook.png new file mode 100644 index 0000000000000000000000000000000000000000..1280c65818fc824bdc56a12ed7aab3f6d18698b9 GIT binary patch literal 2309 zcmV+g3HtVlP)DYZyYR8WjcAKFT&mE21G!9y$FDjupt<)!}t2>t;i9)eIS^|5b#tOy`g$_rA9 zsT34IiBVMJBnE0@lh|JGkNfpuW_IWI+&eRim*%WiyE}8{yLY}h=iGD8y(<8)bn*4Z zDVbWN($AAv1~@N}hKL9N5FsJczJf?UjshJdMl^*Bf(~{FylNf`Cf^1To1XDB9@Po1pLsO}wjh|E12VbH(*62QLVC zK}00pfd@(i0099nI7(hri*id*>E{Jp5)pOS{TmnYxR9lm@DECeWu&;(11TZr@#F8Z ztATliq;DJH{oi{d=Uo9BnWsn9Y({`C>W8g?M@F` z7q{UW_BQWlc9NJ2S-~1fxQ@c9lSlCQqbD&xcNE_~F^v;Pr!YCufa55DgeKANYqUFk z9CUivZ}+gf-@)yT9sKR>>)71hFKnxrphC+rdD2x}GiaBC&xdDc@XSvi!xLxc@bK&m zT1^)sKt?!?;*nV2*v4D$tQrzT0%2f_C!1?IMN^P8yn@kfda8*ZKlvS8diML6nrse^ zn-G)Gr3T5+?|ApU1Flie%~ZnZwMZCdX1aynE}zFQo<4`E$)*)4NnnE1p%${SjABq4 zIbYqVM3BHQpFWFU{p2xBO*E>J6QEN2Hzv9Bh)jaAEGCT@o7ubfJsTrByY>*CJbwzm z`}GAVCH0Uqz$O4f@+_!os*puawtfM@F}Pz#Ch(i(^R?|j)U;ZHwPn?^> z;=+lt03}-;b~xL`a?GJ{G_r85C@v%4zxj<8p8DQt%uKgNV?BNd$`jW%*k%pq!=DxL zd<=s4*31OX%pWgBj#(mFS0;@Nt0^F-to8V@6UUEEV)pp7X%|5fTid%>dH)u!ee?-- z?zcfd&<7-oD6|hWKHI#Pc^_f19>uZ%ZQUxnmK=;N#OaeqFwx4a#>DW5f4uVnUj55k zxU=zv-R0HBPp&T#UPRl}MK$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G5eyDHBm{^f@)1WTXMCreIyh$rv9x+J zl8D04^mLecwylU?2N5ZNyh!OwPytFIojsXS-6jEwqLWE@`7?uT9n7JrvbqBVgf|$4 zrBhCsy}NUYBB)c(5E!8K1DP;SMW&=99>^mQNB2OwNPZH4lmP?)VXFY)C&9THW7kW6 z@?3!V9sp?SA-%%;K$!x#`scEz}S7vS~O-g5R^=5*| zsl&Y&8iBnt&as=i%C;>ff1azhGH3{J6tk1A zVtY*BE-Xd6fI0C-@)Qsst5;9DZejS0m?2bFMV7={`en;g8Zs2l&jWg3`JhHmdTj-I z@^sMTo3gHF>OOr)pH7 zzf{n0RD>ZJS|h$$S47ir_>^Qz>(V4Ur#|;DG+$TKKvyk@UkMeh6QiSmGl_Qkb;0IcQqFLGpeRvr&LW4rUVnct6i{&XzMwcjfjseXcQjWZ)$s2 zNQqZU32lJrENn)5n*4qQN&2;z>0CO=!09#xn~wIRJohi@F_>{?S`Pn4oICl_!eY>Q zo*5I33CsK#*Ru?W2LNVF1RQ+t+{te(2mlyAaqRq}>^#AYGuD+C{8%=2*$@u^lKC_f zeR=%EvGYLcjalO-j-9{J89o>=9R=eQGp;eC^pzz=M7vzMEEm$5A;GxD;8P4fdNY_j gbo$j7F2w2o10D`Dg?u!dX8-^I07*qoM6N<$g3C~&mH+?% literal 0 HcmV?d00001 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index d52c4690e..498fbc15c 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -6,4 +6,6 @@ 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