From fe19a17320a1eab30a495c2e56398cc6743cf6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=B4=E6=9C=AF?= Date: Thu, 1 Feb 2018 00:00:22 +0800 Subject: [PATCH] [Exposed-UI]: fix crash on kitkat of vectordrawable. --- .../io/virtualapp/about/AboutActivity.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/VirtualApp/app/src/main/java/io/virtualapp/about/AboutActivity.java b/VirtualApp/app/src/main/java/io/virtualapp/about/AboutActivity.java index a3234f4f8..b91a4d622 100644 --- a/VirtualApp/app/src/main/java/io/virtualapp/about/AboutActivity.java +++ b/VirtualApp/app/src/main/java/io/virtualapp/about/AboutActivity.java @@ -30,20 +30,23 @@ public class AboutActivity extends VActivity { protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); - View aboutPage = new AboutPage(this) + AboutPage page = new AboutPage(this) .isRTL(false) .setImage(R.mipmap.ic_launcher) .addItem(getVersionElement()) .addItem(getFeedbackElement()) - .addItem(getFeedbackWechatElement()) - .addItem(getThanksElement()) - .addItem(getDonateElement()) - .addEmail("twsxtd@gmail.com") - .addWebsite("https://github.com/android-hacker/VAExposed") - .addGitHub("tiann") - .addItem(getCopyRightsElement()) - .create(); + .addItem(getFeedbackWechatElement()); + try { + page.addItem(getThanksElement()) + .addItem(getDonateElement()) + .addEmail("twsxtd@gmail.com") + .addWebsite("https://github.com/android-hacker/VAExposed") + .addGitHub("tiann") + .addItem(getCopyRightsElement()); + } catch (Throwable ignored) { + } + View aboutPage = page.create(); setContentView(aboutPage); }