Don't log the full stack trace when we can't load a resource.

Bug: 3369315
Change-Id: I3a586bbefccbd59a0e99d712efe9a1cd3da6d058
This commit is contained in:
Joe Onorato
2011-01-20 11:49:56 -08:00
parent 8192b4179f
commit 08f1654417

View File

@@ -570,6 +570,9 @@ final class ApplicationPackageManager extends PackageManager {
} catch (NameNotFoundException e) {
Log.w("PackageManager", "Failure retrieving resources for"
+ appInfo.packageName);
} catch (Resources.NotFoundException e) {
Log.w("PackageManager", "Failure retrieving resources for"
+ appInfo.packageName + ": " + e.getMessage());
} catch (RuntimeException e) {
// If an exception was thrown, fall through to return
// default icon.