Commit 8e1303d4 authored by fallenstardust's avatar fallenstardust

更新日志的教程按钮改为打开用户隐私政策

parent 14095533
...@@ -41,8 +41,9 @@ ...@@ -41,8 +41,9 @@
</pre> </pre>
<h3 style="color:#ff0000">注意</h3> <h3 style="color:#ff0000">注意</h3>
<pre> <pre>
①:目前32位CPU的手机不能使用单机人机,可以打在线人机。 ①:请注意阅读用户隐私政策;
②:安装本软件时会根据系统语言来设置ygopro的语言,如果觉得不便可以在"我的"里修改资料语言; ②:安装本软件时会根据系统语言来设置ygopro的语言,
如果觉得不便可以在"我的"里修改资料语言;
③:卸载本软件将删除包含卡组在内的重要文件,卸载前请慎重; ③:卸载本软件将删除包含卡组在内的重要文件,卸载前请慎重;
</pre> </pre>
</body> </body>
......
...@@ -86,24 +86,32 @@ public class MainActivity extends HomeActivity implements BottomNavigationBar.On ...@@ -86,24 +86,32 @@ public class MainActivity extends HomeActivity implements BottomNavigationBar.On
dialog.showTitleBar(); dialog.showTitleBar();
dialog.setTitle(getString(R.string.settings_about_change_log)); dialog.setTitle(getString(R.string.settings_about_change_log));
dialog.loadUrl("file:///android_asset/changelog.html", Color.TRANSPARENT); dialog.loadUrl("file:///android_asset/changelog.html", Color.TRANSPARENT);
dialog.setLeftButtonText(R.string.help); dialog.setLeftButtonText(R.string.user_privacy_policy);
dialog.setLeftButtonListener((dlg, i) -> { dialog.setLeftButtonListener((dlg, i) -> {
dialog.setContentView(R.layout.dialog_help); dialog.dismiss();
dialog.setTitle(R.string.question); final DialogPlus dialogPlus = new DialogPlus(this);
dialog.hideButton(); dialogPlus.setTitle(R.string.user_privacy_policy);
dialog.show(); //根据系统语言复制特定资料文件
View viewDialog = dialog.getContentView(); String language = getContext().getResources().getConfiguration().locale.getLanguage();
Button btnMasterRule = viewDialog.findViewById(R.id.masterrule); String fileaddr = "";
Button btnTutorial = viewDialog.findViewById(R.id.tutorial); if (!language.isEmpty()) {
if (language.equals(AppsSettings.languageEnum.Chinese.name)) {
btnMasterRule.setOnClickListener((v) -> { fileaddr = "file:///android_asset/user_Privacy_Policy_CN.html";
WebActivity.open(this, getString(R.string.masterrule), Constants.URL_MASTER_RULE_CN); } else if (language.equals(AppsSettings.languageEnum.Korean.name)) {
dialog.dismiss(); fileaddr = "file:///android_asset/user_Privacy_Policy_KO.html";
}); } else if (language.equals(AppsSettings.languageEnum.Spanish.name)) {
btnTutorial.setOnClickListener((v) -> { fileaddr = "file:///android_asset/user_Privacy_Policy_ES.html";
WebActivity.open(this, getString(R.string.help), Constants.URL_HELP); } else if (language.equals(AppsSettings.languageEnum.Japanese)) {
dialog.dismiss(); fileaddr = "file:///android_asset/user_Privacy_Policy_JP.html";
} else {
fileaddr = "file:///android_asset/user_Privacy_Policy_EN.html";
}
}
dialogPlus.loadUrl(fileaddr, Color.TRANSPARENT);
dialogPlus.setRightButtonListener((dialogInterface, ii) -> {
dialogPlus.dismiss();
}); });
dialogPlus.show();
}); });
dialog.setRightButtonText(R.string.OK); dialog.setRightButtonText(R.string.OK);
dialog.setRightButtonListener((dlg, i) -> { dialog.setRightButtonListener((dlg, i) -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment