From 553d4c860a0e4e27469467f4ba164318d42261b7 Mon Sep 17 00:00:00 2001 From: tiann <923551233@qq.com> Date: Fri, 20 Apr 2018 00:36:24 +0800 Subject: [PATCH] [VXP]: About page ui adjust. --- .../io/virtualapp/settings/AboutActivity.java | 25 +++++++++++++++---- .../app/src/main/res/values-es/strings.xml | 4 +-- .../src/main/res/values-zh-rCN/strings.xml | 5 ++-- .../app/src/main/res/values/strings.xml | 3 ++- 4 files changed, 27 insertions(+), 10 deletions(-) diff --git a/VirtualApp/app/src/main/java/io/virtualapp/settings/AboutActivity.java b/VirtualApp/app/src/main/java/io/virtualapp/settings/AboutActivity.java index bb960297a..e643e8d06 100644 --- a/VirtualApp/app/src/main/java/io/virtualapp/settings/AboutActivity.java +++ b/VirtualApp/app/src/main/java/io/virtualapp/settings/AboutActivity.java @@ -38,8 +38,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { .addItem(getFeedbackWechatElement()) .addItem(getFeedbacTelegramElement()) .addItem(getThanksElement()) + .addItem(getWebsiteElement()) .addEmail("va1xposed@gmail.com") - .addWebsite("http://vxposed.com") .addGitHub("tiann") .addItem(getCopyRightsElement()); View aboutPage = page.create(); @@ -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); @@ -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(); }); @@ -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)); diff --git a/VirtualApp/app/src/main/res/values-es/strings.xml b/VirtualApp/app/src/main/res/values-es/strings.xml index 6f57de7d9..ae6f364f5 100644 --- a/VirtualApp/app/src/main/res/values-es/strings.xml +++ b/VirtualApp/app/src/main/res/values-es/strings.xml @@ -33,8 +33,8 @@ La instalación de %1$s falló: %2$s Todos los derechos reservados © %1$d 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. - Grupo QQ: %1$s - Grupo WeChat: %1$s + Grupo QQ + Grupo WeChat ¡El número del grupo ha sido copiado al portapaleles! Versión: %1$s Donar diff --git a/VirtualApp/app/src/main/res/values-zh-rCN/strings.xml b/VirtualApp/app/src/main/res/values-zh-rCN/strings.xml index e92c44325..d2ad41b2c 100644 --- a/VirtualApp/app/src/main/res/values-zh-rCN/strings.xml +++ b/VirtualApp/app/src/main/res/values-zh-rCN/strings.xml @@ -32,8 +32,8 @@ 模块安装完后需要去XposedInstaller的模块设置里勾选才能生效哦~ %1$s 安装失败,错误码: %2$s VirtualXposed是一个基于VirtualApp的,免Root、免解锁BL、免刷机使用Xposed框架的APP。 - 反馈 QQ 群: %1$s - 反馈微信群: %1$s (不是作者,进群专用) + 内测 QQ 群(点击复制群号) + 内测微信群(点击复制群号) 群号已经复制到剪切版 版本号: %1$s 支持我 @@ -126,4 +126,5 @@ 内部文件复制 开启这个开关,可能会提高VirtualXposed的稳定性,但同时会失去对插件的一些兼容性。 保守模式 + 官网(使用教程/历史版本下载/模块下载) diff --git a/VirtualApp/app/src/main/res/values/strings.xml b/VirtualApp/app/src/main/res/values/strings.xml index 5b9070ef6..e2d217c3a 100644 --- a/VirtualApp/app/src/main/res/values/strings.xml +++ b/VirtualApp/app/src/main/res/values/strings.xml @@ -34,7 +34,7 @@ Copyrights © %1$d VirtualXposed is an app provides the ability to use Xposed module without root, unlock the bootload or modify sysyem image. QQ Group: %1$s - WeChat Group: %1$s + WeChat Group(Click to copy group number) Group number has been copied to clipboard! Version: %1$s Donate @@ -130,4 +130,5 @@ Copy File Open this for a trade off between stability and compatibility Conservative Mode + The official website