Skip to content

Commit 8a61a66

Browse files
author
tiann
committed
Update: minor tweaks
1 parent 7a78a92 commit 8a61a66

File tree

9 files changed

+34
-12
lines changed

9 files changed

+34
-12
lines changed

VirtualApp/app/src/main/java/io/virtualapp/home/NewHomeActivity.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
import io.virtualapp.abs.ui.VUiKit;
4646
import io.virtualapp.settings.SettingsActivity;
4747
import io.virtualapp.update.VAVersionService;
48+
import io.virtualapp.utils.Misc;
49+
import jonathanfinerty.once.Once;
4850

4951
import static io.virtualapp.XApp.XPOSED_INSTALLER_PACKAGE;
5052

@@ -76,7 +78,7 @@ public void onCreate(Bundle savedInstanceState) {
7678
showMenuKey();
7779
mUiHandler = new Handler(getMainLooper());
7880
alertForMeizu();
79-
alertForDoze();
81+
alertForDonate();
8082
mDirectlyBack = sharedPreferences.getBoolean(SettingsActivity.DIRECTLY_BACK_KEY, false);
8183
}
8284

@@ -232,6 +234,26 @@ public void startVirtualActivity(Intent intent, Bundle options, int usedId) {
232234
}
233235
}
234236

237+
private void alertForDonate() {
238+
final String TAG = "show_donate";
239+
if (Once.beenDone(Once.THIS_APP_VERSION, TAG)) {
240+
alertForDoze();
241+
return;
242+
}
243+
AlertDialog alertDialog = new AlertDialog.Builder(getContext())
244+
.setTitle(R.string.about_donate)
245+
.setMessage(R.string.donate_dialog_content)
246+
.setPositiveButton(android.R.string.yes, (dialog, which) -> {
247+
Misc.showDonate(this);
248+
Once.markDone(TAG);
249+
})
250+
.create();
251+
try {
252+
alertDialog.show();
253+
} catch (Throwable ignored) {
254+
}
255+
}
256+
235257
private void alertForMeizu() {
236258
if (!DeviceUtil.isMeizuBelowN()) {
237259
return;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<string name="prompt_alipay_not_found">No se encontró Alipay</string>
4949
<string name="prompt_wait">Por favor, espero un momento…</string>
5050
<string name="donate_dialog_title">Sobre donar…</string>
51-
<string name="donate_dialog_content">No dones a menos que seas adinerado :)</string>
51+
<string name="donate_dialog_content">El mantenimiento de VirtualXposed cuesta mucho de mi tiempo, si aprecias mi trabajo, ¡cómprame una taza de café! :)</string>
5252
<string name="donate_dialog_yes">Donar</string>
5353
<string name="donate_dialog_no">Cancelar</string>
5454
<string name="large_app_install_tips">La instalación puede demorar un tiempo, por favor sé paciente :)</string>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<string name="prompt_alipay_not_found">Alipay non trouvé.</string>
4747
<string name="prompt_wait">Patienter juste un moment…</string>
4848
<string name="donate_dialog_title">A propos des dons</string>
49-
<string name="donate_dialog_content">Ne me faites pas de dons si vous n\'êtes pas riche :)</string>
49+
<string name="donate_dialog_content">La maintenance de VirtualXposed prend beaucoup de temps, si vous appréciez mon travail, achetez-moi une tasse de café! :)</string>
5050
<string name="donate_dialog_yes">Don</string>
5151
<string name="donate_dialog_no">Annuler</string>
5252
<string name="large_app_install_tips">L\'installation peut prendre un certain temps, merci d\'être patient… :)</string>

VirtualApp/app/src/main/res/values-pt-rBR/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<string name="prompt_alipay_not_found">Alipay não encontrado.</string>
5050
<string name="prompt_wait">Espere só um momento...</string>
5151
<string name="donate_dialog_title">Sobre Doar</string>
52-
<string name="donate_dialog_content">Não me doe se você não é rico :)</string>
52+
<string name="donate_dialog_content">Manter o VirtualXposed me levou muito tempo livre, e se isso te trouxer conveniência, posso me patrocinar uma onda :)</string>
5353
<string name="donate_dialog_yes">Doar</string>
5454
<string name="donate_dialog_no">Cancelar</string>
5555
<string name="large_app_install_tips">A instalação pode demorar um pouco, por favor, seja paciente... :)</string>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<string name="prompt_alipay_not_found">Alipay не найден.</string>
4646
<string name="prompt_wait">Подождите минуту...</string>
4747
<string name="donate_dialog_title">О пожертвовании</string>
48-
<string name="donate_dialog_content">Не жертвуйте мне, если не богаты :)</string>
48+
<string name="donate_dialog_content">Поддержание VirtualXposed отнимает у меня много времени, если вы цените мою работу, купите мне чашку кофе! :)</string>
4949
<string name="donate_dialog_yes">Пожертвовать</string>
5050
<string name="donate_dialog_no">Отмена</string>
5151
<string name="large_app_install_tips">Установка может занять некоторое время, будьте терпеливы... :)</string>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<string name="meizu_device_tips_content">受限于魅族系统的限制,您必须先在系统中安装相应的APP以及Xposed模块,然后再克隆到VirtualXposed中才能正常使用。请首先在安装 XposedInstaller 然后克隆到 VAEposed 中!!</string>
4545
<string name="prompt_alipay_not_found">你没有安装支付宝 ~_~</string>
4646
<string name="donate_dialog_title">关于打赏</string>
47-
<string name="donate_dialog_content">如果你并不富裕,请不要捐赠!去github点赞支持或者告诉身边的朋友就好 ^_^ </string>
47+
<string name="donate_dialog_content">维护 VirtualXposed 花费了我很多业余时间,如果它给您带来了便利,可以赞助我一波 :)</string>
4848
<string name="donate_dialog_yes">我就要打赏</string>
4949
<string name="donate_dialog_no">去github点赞</string>
5050
<string name="large_app_install_tips">安装大型APP可能需要花费较长的时间,请耐心等待~</string>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<string name="meizu_device_tips_content">受限於魅族系統的限制,您必須先在系統中安裝相應的APP以及Xposed模組,然後再複製到VirtualXposed中才能正常使用。請首先在安裝 XposedInstaller 然後複製到 VAEposed 中!!</string>
4444
<string name="prompt_alipay_not_found">你沒有安裝支付寶 ~_~</string>
4545
<string name="donate_dialog_title">關於打賞</string>
46-
<string name="donate_dialog_content">如果你並不富裕,請不要捐贈!去github按讚支援或者告訴身邊的朋友就好 ^_^ </string>
46+
<string name="donate_dialog_content">維護 VirtualXposed 花費了我很多業餘時間,如果它給您帶來了便利,可以贊助我一波 :)</string>
4747
<string name="donate_dialog_yes">我就要打賞</string>
4848
<string name="donate_dialog_no">去github按讚</string>
4949
<string name="large_app_install_tips">安裝大型APP可能需要花費較長的時間,請耐心等待~</string>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
<string name="about_feedback_tips">Group number has been copied to clipboard!</string>
4040
<string name="about_version_title">Version: %1$s</string>
4141
<string name="about_donate_title">Donate</string>
42-
<string name="reboot_tips_1">Reboot successfull!</string>
43-
<string name="reboot_tips_2">Reboot successfull!</string>
44-
<string name="reboot_tips_3">Reboot successfull!</string>
42+
<string name="reboot_tips_1">Reboot successfully!</string>
43+
<string name="reboot_tips_2">Reboot successfully!</string>
44+
<string name="reboot_tips_3">Reboot successfully!</string>
4545
<string name="meizu_device_tips_title">Detect Meizu Device: </string>
4646
<string name="meizu_device_tips_content">In Meizu OS phones, you can only add an app to VirtualXposed by cloning an existing app that\'s already installed (you cannot install an app in VirtualXposed via sideloading an apk). You must also install XposedInstaller manually, as, unlike installations on other Android phones, it isn\'t built in to VirtualXposed when installing on Meizu OS. Please install XposedInstaller first.</string>
4747
<string name="donate_alipay">Alipay</string>
4848
<string name="donate_wepay">Wechat Pay</string>
4949
<string name="prompt_alipay_not_found">Alipay not found.</string>
5050
<string name="prompt_wait">Wait just a moment…</string>
5151
<string name="donate_dialog_title">About Donate</string>
52-
<string name="donate_dialog_content">Don\'t donate to me if you aren\'t rich :)</string>
52+
<string name="donate_dialog_content">The maintaining of VirtualXposed costs lots of my time, if you appreciate my work, buy me a cup of coffee! :)</string>
5353
<string name="donate_dialog_yes">Donate</string>
5454
<string name="donate_dialog_no">Cancel</string>
5555
<string name="large_app_install_tips">Installation may take a while, please be patient… :)</string>

VirtualApp/launcher

0 commit comments

Comments
 (0)