File tree Expand file tree Collapse file tree 9 files changed +34
-2
lines changed
java/com/simplemobiletools/flashlight/activities Expand file tree Collapse file tree 9 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 22
33import android .content .Intent ;
44import android .content .res .Resources ;
5+ import android .net .Uri ;
56import android .os .Bundle ;
67import android .support .v7 .app .AppCompatActivity ;
78import android .text .Html ;
@@ -61,4 +62,15 @@ public void licenseClicked() {
6162 final Intent intent = new Intent (getApplicationContext (), LicenseActivity .class );
6263 startActivity (intent );
6364 }
65+
66+ @ OnClick (R .id .about_facebook )
67+ public void facebookClicked () {
68+ String link = "https://www.facebook.com/simplemobiletools" ;
69+ try {
70+ getPackageManager ().getPackageInfo ("com.facebook.katana" , 0 );
71+ link = "fb://page/150270895341774" ;
72+ } catch (Exception ignored ) {
73+ }
74+ startActivity (new Intent (Intent .ACTION_VIEW , Uri .parse (link )));
75+ }
6476}
Original file line number Diff line number Diff line change 3333 android : layout_width =" match_parent"
3434 android : layout_height =" wrap_content"
3535 android : layout_below =" @+id/about_email"
36+ android : layout_marginTop =" @dimen/activity_margin"
3637 android : paddingBottom =" @dimen/activity_margin"
3738 android : paddingTop =" @dimen/activity_margin"
3839 android : text =" @string/third_party_licences_underlined"
3940 android : textColor =" @color/colorPrimary" />
4041
42+ <TextView
43+ android : id =" @+id/about_follow_us"
44+ android : layout_width =" match_parent"
45+ android : layout_height =" wrap_content"
46+ android : layout_below =" @+id/about_license"
47+ android : paddingBottom =" @dimen/social_padding"
48+ android : paddingTop =" @dimen/activity_margin"
49+ android : text =" @string/follow_us" />
50+
51+ <ImageView
52+ android : id =" @+id/about_facebook"
53+ android : layout_width =" @dimen/social_logo"
54+ android : layout_height =" @dimen/social_logo"
55+ android : layout_below =" @+id/about_follow_us"
56+ android : src =" @mipmap/facebook" />
57+
4158 <TextView
4259 android : id =" @+id/about_version"
4360 android : layout_width =" match_parent"
Original file line number Diff line number Diff line change 11<resources >
22 <dimen name =" activity_margin" >16dp</dimen >
3+ <dimen name =" social_padding" >8dp</dimen >
4+ <dimen name =" social_logo" >40dp</dimen >
35</resources >
Original file line number Diff line number Diff line change 44
55 <!-- About -->
66 <string name =" about" >About</string >
7- <string name =" website" >For more simple apps or source codes please visit :\nhttp://simplemobiletools.com</string >
8- <string name =" email_label" >You can send your feedback or new app suggestions at:</string >
7+ <string name =" website" >More simple apps and source code at :\nhttp://simplemobiletools.com</string >
8+ <string name =" email_label" >Send your feedback or suggestions at:</string >
99 <
string name =
" email" >
[email protected] </
string >
1010 <string name =" third_party_licences_underlined" ><u >Third party licences</u ></string >
11+ <string name =" follow_us" >Follow us at:</string >
1112 <string name =" version" >v %1$s</string >
1213 <string name =" copyright" >Copyright © Simple Mobile Tools %1$d</string >
1314
You can’t perform that action at this time.
0 commit comments