Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fixed force close from update notification for removed application
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
M66B committed Jan 11, 2014
1 parent 633a8d0 commit 03fac2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Test and beta releases will have experimental functions enabled by default.
* Fixed maximum number count message for submit and increased maximum to ten
* Fixed location listener casting ([issue](https://github.com/M66B/XPrivacy/issues/1094))
* Fixed reading settings file in some situations ([issue](https://github.com/M66B/XPrivacy/issues/1094))
* Fixed force close from update notification for removed application ([issue](https://github.com/M66B/XPrivacy/issues/51))
* Added restriction for Motorola's contact provider *blur*, thanks @[liudongmiao](https://github.com/liudongmiao)
* Updated minimum API version numbers, thanks @[liudongmiao](https://github.com/liudongmiao)
* Restore application state color from imported settings ([issue](https://github.com/M66B/XPrivacy/issues/1065))
Expand Down
5 changes: 4 additions & 1 deletion src/biz/bokhorst/xprivacy/ApplicationInfoEx.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public class ApplicationInfoEx implements Comparable<ApplicationInfoEx> {
public ApplicationInfoEx(Context context, int uid) throws NameNotFoundException {
mMapAppInfo = new TreeMap<String, ApplicationInfo>();
PackageManager pm = context.getPackageManager();
for (String packageName : pm.getPackagesForUid(uid)) {
String[] packages = pm.getPackagesForUid(uid);
if (packages == null)
throw new NameNotFoundException();
for (String packageName : packages) {
ApplicationInfo appInfo = pm.getApplicationInfo(packageName, 0);
mMapAppInfo.put(pm.getApplicationLabel(appInfo).toString(), appInfo);
}
Expand Down

0 comments on commit 03fac2a

Please sign in to comment.