Fixed crash

This commit is contained in:
M66B 2016-07-12 19:25:03 +02:00
parent 5450f5882a
commit 9e65756cab
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public class ServiceJob extends JobService {
Resources res = pm.getResourcesForApplication(rule.info.packageName); Resources res = pm.getResourcesForApplication(rule.info.packageName);
res.updateConfiguration(config, res.getDisplayMetrics()); res.updateConfiguration(config, res.getDisplayMetrics());
label = res.getString(rule.info.applicationInfo.labelRes); label = res.getString(rule.info.applicationInfo.labelRes);
} catch (PackageManager.NameNotFoundException ex) { } catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex)); Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
label = rule.info.applicationInfo.loadLabel(pm).toString(); label = rule.info.applicationInfo.loadLabel(pm).toString();
} }