Skip to content

Commit 1ceaad7

Browse files
author
维术
committed
[Exposed] Add wechat group feedback.
1 parent 3b4b632 commit 1ceaad7

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

VirtualApp/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33

44
android {
5-
compileSdkVersion 25
5+
compileSdkVersion 26
66
buildToolsVersion '26.0.2'
77
defaultConfig {
88
applicationId "io.va.exposed"

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
3535
.setImage(R.mipmap.ic_launcher)
3636
.addItem(getVersionElement())
3737
.addItem(getFeedbackElement())
38+
.addItem(getFeedbackWechatElement())
3839
.addEmail("[email protected]")
3940
.addWebsite("https://github.com/android-hacker/VAExposed")
4041
.addGitHub("tiann")
@@ -87,6 +88,21 @@ Element getFeedbackElement() {
8788
return feedback;
8889
}
8990

91+
Element getFeedbackWechatElement() {
92+
Element feedback = new Element();
93+
final String weChatGroup = "CSYJZF";
94+
feedback.setTitle(getResources().getString(R.string.about_feedback_wechat_title, weChatGroup));
95+
96+
feedback.setOnClickListener(v -> {
97+
ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
98+
if (clipboardManager != null) {
99+
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, weChatGroup));
100+
}
101+
Toast.makeText(v.getContext(), getResources().getString(R.string.about_feedback_tips), Toast.LENGTH_SHORT).show();
102+
});
103+
return feedback;
104+
}
105+
90106
Element getDonateElement() {
91107
Element donate = new Element();
92108
donate.setTitle(getResources().getString(R.string.about_donate_title));
@@ -107,6 +123,7 @@ Element getDonateElement() {
107123
intent.setAction(Intent.ACTION_VIEW);
108124
intent.addCategory(Intent.CATEGORY_BROWSABLE);
109125
intent.setData(Uri.parse("https://github.com/android-hacker/exposed"));
126+
startActivity(intent);
110127
}))
111128
.create();
112129
try {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
<string name="install_fail_tips">%1$s 安装失败,错误码: %2$s</string>
3434
<string name="about_page_description">VAExposed是一个基于VirtualApp的,免Root、免解锁BL、免刷机使用Xposed框架的APP。</string>
3535
<string name="about_feedback_title">反馈 QQ 群: %1$s</string>
36-
<string name="about_feedback_tips">QQ号已经复制到剪切版</string>
36+
<string name="about_feedback_wechat_title">反馈微信群: %1$s (不是作者,进群专用)</string>
37+
<string name="about_feedback_tips">群号已经复制到剪切版</string>
3738
<string name="about_version_title">版本号: %1$s</string>
3839
<string name="about_donate_title">支持我</string>
3940
<string name="reboot_tips_1">虽然也许你不太相信,但是VAExposed确实重启完成了!</string>

VirtualApp/app/src/main/res/values/strings.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
<string name="install_fail_tips">Install %1$s failed: %2$s</string>
3434
<string name="copy_right" translatable="false" >Copyrights © %1$d</string>
3535
<string name="about_page_description">VAExposed is an app provides the ability to use Xposed module without root, unlock the bootload or modify sysyem image.</string>
36-
<string name="about_feedback_title">Feedback QQ Group: %1$s</string>
37-
<string name="about_feedback_tips">QQ group number has been copied to clipboard!</string>
36+
<string name="about_feedback_title">QQ Group: %1$s</string>
37+
<string name="about_feedback_wechat_title">Wechat Group: %1$s</string>
38+
<string name="about_feedback_tips">Group number has been copied to clipboard!</string>
3839
<string name="about_version_title">Version: %1$s</string>
3940
<string name="about_donate_title">Donate</string>
4041
<string name="reboot_tips_1">Reboot Successfully!!</string>

VirtualApp/lib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 24
4+
compileSdkVersion 26
55
buildToolsVersion '26.0.2'
66

77
defaultConfig {
@@ -40,7 +40,7 @@ android {
4040
dependencies {
4141
compile fileTree(include: ['*.jar'], dir: 'libs')
4242
// compile 'com.github.android-hacker:exposed:0.3.6'
43-
compile 'me.weishu.exposed:exposed-core:0.4.0'
43+
compile 'me.weishu.exposed:exposed-core:0.4.1'
4444
}
4545

4646
repositories {

0 commit comments

Comments
 (0)