Skip to content

Commit 3b4b632

Browse files
author
维术
committed
[Exposed] Add star for github.
1 parent 0a632d1 commit 3b4b632

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

VirtualApp/app/src/main/java/io/virtualapp/about/AboutActivity.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import android.content.ClipData;
44
import android.content.ClipboardManager;
5+
import android.content.Intent;
56
import android.content.pm.PackageInfo;
67
import android.content.pm.PackageManager;
8+
import android.net.Uri;
79
import android.os.Build;
810
import android.os.Bundle;
911
import android.support.annotation.Nullable;
@@ -100,7 +102,12 @@ Element getDonateElement() {
100102
}
101103
AlipayZeroSdk.startAlipayClient(AboutActivity.this, "FKX016770URBZGZSR37U37");
102104
})
103-
.setNegativeButton(R.string.donate_dialog_no, null)
105+
.setNegativeButton(R.string.donate_dialog_no, ((dialog, which) -> {
106+
Intent intent = new Intent();
107+
intent.setAction(Intent.ACTION_VIEW);
108+
intent.addCategory(Intent.CATEGORY_BROWSABLE);
109+
intent.setData(Uri.parse("https://github.com/android-hacker/exposed"));
110+
}))
104111
.create();
105112
try {
106113
alertDialog.show();

VirtualApp/app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<string name="donate_dialog_title">关于捐赠</string>
4646
<string name="donate_dialog_content">VAExposed 是开源、免费软件,但是用到的升级服务器和fir下载服务是我自己付费的,如果你喜欢VAExposed,可以略尽绵薄之力 ^_^ </string>
4747
<string name="donate_dialog_yes">去支付宝捐赠</string>
48-
<string name="donate_dialog_no">先不了哈,加油~</string>
48+
<string name="donate_dialog_no">去github点赞</string>
4949
<string name="large_app_install_tips">安装大型APP可能需要花费较长的时间,请耐心等待~</string>
5050
<string name="about_icon_title">关于图标</string>
5151
<string name="about_icon_content">如果你不喜欢这个图标,赶紧为VAExposed设计一个吧!哈哈哈哈哈,我知道你们这些设计师肯定会看不下去的,啊哈哈哈</string>

0 commit comments

Comments
 (0)