Do not crash on app uninstall (fix #167)
Immediately after an app uninstall, the associated App will be updated by a call to reset() in the AppObserver.onChange().
But before receiving this event, the activity and the fragments resume, leading to a call to getInstalledStatus(…). At this stage, we don't know that the app has been removed yet, but the package manager already removed it. Therefore, PackageManager.getInstallerPackageName(…) throws an IllegalArgumentException.
In that case, consider that the application has been uninstalled.
Looks good! Will test and merge.
Added 1 new commit:
Toggle commit list
- 509a9fde - Do not crash on app uninstall
Status changed to mergedToggle commit list
Thanks! Keep up the good work :)