Skip to content

Commit fe19a17

Browse files
author
维术
committed
[Exposed-UI]: fix crash on kitkat of vectordrawable.
1 parent 4cb18ee commit fe19a17

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,23 @@ public class AboutActivity extends VActivity {
3030
protected void onCreate(@Nullable Bundle savedInstanceState) {
3131
super.onCreate(savedInstanceState);
3232

33-
View aboutPage = new AboutPage(this)
33+
AboutPage page = new AboutPage(this)
3434
.isRTL(false)
3535
.setImage(R.mipmap.ic_launcher)
3636
.addItem(getVersionElement())
3737
.addItem(getFeedbackElement())
38-
.addItem(getFeedbackWechatElement())
39-
.addItem(getThanksElement())
40-
.addItem(getDonateElement())
41-
.addEmail("[email protected]")
42-
.addWebsite("https://github.com/android-hacker/VAExposed")
43-
.addGitHub("tiann")
44-
.addItem(getCopyRightsElement())
45-
.create();
38+
.addItem(getFeedbackWechatElement());
4639

40+
try {
41+
page.addItem(getThanksElement())
42+
.addItem(getDonateElement())
43+
.addEmail("[email protected]")
44+
.addWebsite("https://github.com/android-hacker/VAExposed")
45+
.addGitHub("tiann")
46+
.addItem(getCopyRightsElement());
47+
} catch (Throwable ignored) {
48+
}
49+
View aboutPage = page.create();
4750
setContentView(aboutPage);
4851
}
4952

0 commit comments

Comments
 (0)