diff --git a/app/build.gradle b/app/build.gradle index 212b256..ced1825 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,14 +8,14 @@ android { applicationId "net.fengberd.minecraftpe_server" minSdkVersion 14 targetSdkVersion 21 - versionCode 1094 - versionName "1.0.9.4" + versionCode 1095 + versionName "1.0.9.5" vectorDrawables.useSupportLibrary = true } buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/app/src/main/java/moe/berd/pocket_server/activity/MainActivity.java b/app/src/main/java/moe/berd/pocket_server/activity/MainActivity.java index 951f452..c02b974 100644 --- a/app/src/main/java/moe/berd/pocket_server/activity/MainActivity.java +++ b/app/src/main/java/moe/berd/pocket_server/activity/MainActivity.java @@ -354,7 +354,11 @@ public boolean openUrlFromJson(String key) startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(urls_json.getString(key)))); return true; } - catch(JSONException e) + catch(ActivityNotFoundException e) + { + toast("Open failed."); + } + catch(Exception e) { toast(e.toString()); }