mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
catch package manager has died exception
This commit is contained in:
parent
569bc435d3
commit
9ebd6d503c
@ -97,7 +97,7 @@ public class PhoneHelper {
|
|||||||
if (packageName != null) {
|
if (packageName != null) {
|
||||||
try {
|
try {
|
||||||
return context.getPackageManager().getPackageInfo(packageName, 0).versionName;
|
return context.getPackageManager().getPackageInfo(packageName, 0).versionName;
|
||||||
} catch (final PackageManager.NameNotFoundException e) {
|
} catch (final PackageManager.NameNotFoundException | RuntimeException e) {
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user