File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,11 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
3636 .addItem (getVersionElement ())
3737 .addItem (getFeedbackElement ())
3838 .addItem (getFeedbackWechatElement ())
39+ .addItem (getThanksElement ())
40+ .addItem (getDonateElement ())
39414042 .addWebsite ("https://github.com/android-hacker/VAExposed" )
4143 .addGitHub ("tiann" )
42- .addItem (getDonateElement ())
4344 .addItem (getCopyRightsElement ())
4445 .create ();
4546
@@ -134,4 +135,21 @@ Element getDonateElement() {
134135 });
135136 return donate ;
136137 }
138+
139+ Element getThanksElement () {
140+ Element thanks = new Element ();
141+ thanks .setTitle (getResources ().getString (R .string .about_thanks ));
142+ thanks .setOnClickListener (v -> {
143+ AlertDialog alertDialog = new AlertDialog .Builder (this , R .style .Theme_AppCompat_DayNight_Dialog_Alert )
144+ .setTitle (R .string .thanks_dialog_title )
145+ .setMessage (R .string .thanks_dialog_content )
146+ .create ();
147+ try {
148+ alertDialog .show ();
149+ } catch (Throwable ignored ) {
150+ // BadTokenException.
151+ }
152+ });
153+ return thanks ;
154+ }
137155}
Original file line number Diff line number Diff line change 5252 <string name =" about_icon_content" >如果你不喜欢这个图标,赶紧为VAExposed设计一个吧!哈哈哈哈哈,我知道你们这些设计师肯定会看不下去的,啊哈哈哈</string >
5353 <string name =" about_icon_yes" >。。。。</string >
5454 <string name =" create_shortcut_success" >创建快捷方式成功!</string >
55+ <string name =" about_thanks" >致谢</string >
56+ <string name =" thanks_dialog_title" >特别鸣谢</string >
57+ <string name =" thanks_dialog_content" >感谢 Cheney 提供超赞的Icon,另外谢谢芑芮、佩奇、以及另外一些我还不知道名字的设计师的辛勤付出;谢谢各位小伙伴提供的创意和建议,特别感谢 YingLin 不厌其烦地帮我实现我的稀烂设计 :)</string >
5558</resources >
Original file line number Diff line number Diff line change 5656 <string name =" about_icon_content" >If you do not like my new icon, welcome to design a new icon for VAExposed</string >
5757 <string name =" about_icon_yes" >OK</string >
5858 <string name =" create_shortcut_success" >create shortcut success!</string >
59+ <string name =" about_thanks" >Thanks</string >
60+ <string name =" thanks_dialog_title" >Thanks</string >
61+ <string name =" thanks_dialog_content" >感谢 Cheney 提供超赞的Icon,另外谢谢芑芮、佩奇、以及另外一些我还不知道名字的设计师的辛勤付出;谢谢各位小伙伴提供的创意和建议,特别感谢 YingLin 不厌其烦地帮我实现我的稀烂设计 :)</string >
5962
6063</resources >
You can’t perform that action at this time.
0 commit comments