From 9e65756cab918ee5fa00db95ae2e25c8d8c48940 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 12 Jul 2016 19:25:03 +0200 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/netguard/ServiceJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceJob.java b/app/src/main/java/eu/faircode/netguard/ServiceJob.java index 88e36207..c8e568ec 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceJob.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceJob.java @@ -195,7 +195,7 @@ public class ServiceJob extends JobService { Resources res = pm.getResourcesForApplication(rule.info.packageName); res.updateConfiguration(config, res.getDisplayMetrics()); label = res.getString(rule.info.applicationInfo.labelRes); - } catch (PackageManager.NameNotFoundException ex) { + } catch (Throwable ex) { Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex)); label = rule.info.applicationInfo.loadLabel(pm).toString(); }