Merge "Don't log the full stack trace when we can't load a resource." into honeycomb

This commit is contained in:
Joe Onorato
2011-01-20 12:33:34 -08:00
committed by Android (Google) Code Review

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.