Skip to content

Commit

Permalink
[VXP]: About page ui adjust.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Apr 19, 2018
1 parent 1dd878d commit 553d4c8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
.addItem(getFeedbackWechatElement())
.addItem(getFeedbacTelegramElement())
.addItem(getThanksElement())
.addItem(getWebsiteElement())
.addEmail("[email protected]")
.addWebsite("http://vxposed.com")
.addGitHub("tiann")
.addItem(getCopyRightsElement());
View aboutPage = page.create();
Expand Down Expand Up @@ -74,7 +74,7 @@ Element getVersionElement() {
Element getFeedbackElement() {
Element feedback = new Element();
final String qqGroup = "597478474";
feedback.setTitle(getResources().getString(R.string.about_feedback_title, qqGroup));
feedback.setTitle(getResources().getString(R.string.about_feedback_title));

feedback.setOnClickListener(v -> {
ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
Expand All @@ -88,13 +88,13 @@ Element getFeedbackElement() {

Element getFeedbackWechatElement() {
Element feedback = new Element();
final String weChatGroup = "CSYJZF";
feedback.setTitle(getResources().getString(R.string.about_feedback_wechat_title, weChatGroup));
// final String weChatGroup = "CSYJZF";
feedback.setTitle(getResources().getString(R.string.about_feedback_wechat_title));

feedback.setOnClickListener(v -> {
ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
if (clipboardManager != null) {
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, weChatGroup));
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, "VirtualXposed"));
}
Toast.makeText(v.getContext(), getResources().getString(R.string.about_feedback_tips), Toast.LENGTH_SHORT).show();
});
Expand All @@ -117,6 +117,21 @@ Element getFeedbacTelegramElement() {
return feedback;
}

Element getWebsiteElement() {
Element feedback = new Element();
feedback.setTitle(getResources().getString(R.string.about_website_title));

feedback.setOnClickListener(v -> {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("http://vxposed.com"));
try {
startActivity(intent);
} catch (Throwable ignored) {
}
});
return feedback;
}

Element getThanksElement() {
Element thanks = new Element();
thanks.setTitle(getResources().getString(R.string.about_thanks));
Expand Down
4 changes: 2 additions & 2 deletions VirtualApp/app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<string name="install_fail_tips">La instalación de %1$s falló: %2$s</string>
<string name="copy_right" translatable="false" >Todos los derechos reservados © %1$d</string>
<string name="about_page_description">VirtualXposed es una aplicación que otorga la posibilidad de utilizar un módulo Xposed sin tener root, sin desbloquear el bootloader y sin modificar la imágen del sistema.</string>
<string name="about_feedback_title">Grupo QQ: %1$s</string>
<string name="about_feedback_wechat_title">Grupo WeChat: %1$s</string>
<string name="about_feedback_title">Grupo QQ</string>
<string name="about_feedback_wechat_title">Grupo WeChat</string>
<string name="about_feedback_tips">¡El número del grupo ha sido copiado al portapaleles!</string>
<string name="about_version_title">Versión: %1$s</string>
<string name="about_donate_title">Donar</string>
Expand Down
5 changes: 3 additions & 2 deletions VirtualApp/app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<string name="install_success_tips">模块安装完后需要去XposedInstaller的模块设置里勾选才能生效哦~</string>
<string name="install_fail_tips">%1$s 安装失败,错误码: %2$s</string>
<string name="about_page_description">VirtualXposed是一个基于VirtualApp的,免Root、免解锁BL、免刷机使用Xposed框架的APP。</string>
<string name="about_feedback_title">反馈 QQ 群: %1$s</string>
<string name="about_feedback_wechat_title">反馈微信群: %1$s (不是作者,进群专用)</string>
<string name="about_feedback_title">内测 QQ 群(点击复制群号)</string>
<string name="about_feedback_wechat_title">内测微信群(点击复制群号)</string>
<string name="about_feedback_tips">群号已经复制到剪切版</string>
<string name="about_version_title">版本号: %1$s</string>
<string name="about_donate_title">支持我</string>
Expand Down Expand Up @@ -126,4 +126,5 @@
<string name="advance_settings_copy_file">内部文件复制</string>
<string name="advance_settings_yield_mode_summary">开启这个开关,可能会提高VirtualXposed的稳定性,但同时会失去对插件的一些兼容性。</string>
<string name="advance_settings_yield_mode">保守模式</string>
<string name="about_website_title">官网(使用教程/历史版本下载/模块下载)</string>
</resources>
3 changes: 2 additions & 1 deletion VirtualApp/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<string name="copy_right" translatable="false" >Copyrights © %1$d</string>
<string name="about_page_description">VirtualXposed is an app provides the ability to use Xposed module without root, unlock the bootload or modify sysyem image.</string>
<string name="about_feedback_title">QQ Group: %1$s</string>
<string name="about_feedback_wechat_title">WeChat Group: %1$s</string>
<string name="about_feedback_wechat_title">WeChat Group(Click to copy group number)</string>
<string name="about_feedback_tips">Group number has been copied to clipboard!</string>
<string name="about_version_title">Version: %1$s</string>
<string name="about_donate_title">Donate</string>
Expand Down Expand Up @@ -130,4 +130,5 @@
<string name="advance_settings_copy_file">Copy File</string>
<string name="advance_settings_yield_mode_summary">Open this for a trade off between stability and compatibility</string>
<string name="advance_settings_yield_mode">Conservative Mode</string>
<string name="about_website_title">The official website</string>
</resources>

0 comments on commit 553d4c8

Please sign in to comment.