Skip to content

Commit bfe2b41

Browse files
author
维术
committed
[Exposed-UI]: Add Thanks Alert.
1 parent 4c2da83 commit bfe2b41

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Element getThanksElement() {
143143
AlertDialog alertDialog = new AlertDialog.Builder(this, R.style.Theme_AppCompat_DayNight_Dialog_Alert)
144144
.setTitle(R.string.thanks_dialog_title)
145145
.setMessage(R.string.thanks_dialog_content)
146+
.setPositiveButton(R.string.about_icon_yes, null)
146147
.create();
147148
try {
148149
alertDialog.show();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
129129
VirtualCore.get().registerObserver(mPackageObserver);
130130
alertForMeizu();
131131
mUiHandler.postDelayed(() -> {
132-
final String alertForIcon = "showIconAlert";
132+
final String alertForIcon = "showThanks";
133133
SharedPreferences defaultSp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
134134
boolean show = defaultSp.getBoolean(alertForIcon, true);
135135
defaultSp.edit().putBoolean(alertForIcon, false).apply();
136136
if (show) {
137137
AlertDialog alertDialog = new AlertDialog.Builder(this, R.style.Theme_AppCompat_DayNight_Dialog_Alert)
138-
.setTitle(R.string.about_icon_title)
139-
.setMessage(R.string.about_icon_content)
138+
.setTitle(R.string.thanks_dialog_title)
139+
.setMessage(R.string.thanks_dialog_content)
140140
.setPositiveButton(R.string.about_icon_yes, null)
141141
.create();
142142
try {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<string name="large_app_install_tips">安装大型APP可能需要花费较长的时间,请耐心等待~</string>
5151
<string name="about_icon_title">关于图标</string>
5252
<string name="about_icon_content">如果你不喜欢这个图标,赶紧为VAExposed设计一个吧!哈哈哈哈哈,我知道你们这些设计师肯定会看不下去的,啊哈哈哈</string>
53-
<string name="about_icon_yes">。。。。</string>
53+
<string name="about_icon_yes">我知道了</string>
5454
<string name="create_shortcut_success">创建快捷方式成功!</string>
5555
<string name="about_thanks">致谢</string>
5656
<string name="thanks_dialog_title">特别鸣谢</string>

0 commit comments

Comments
 (0)