Merge "Fix crash for showing linker errors for apps with no label" into nyc-dev

This commit is contained in:
Adam Powell
2016-03-03 17:04:22 +00:00
committed by Android (Google) Code Review

View File

@@ -6599,7 +6599,8 @@ public class Activity extends ContextThemeWrapper
if (isAppDebuggable || isDlwarningEnabled) {
String dlwarning = getDlWarning();
if (dlwarning != null) {
String appName = getString(mApplication.getApplicationInfo().labelRes);
String appName = getApplicationInfo().loadLabel(getPackageManager())
.toString();
String warning = "Detected problems with app native libraries\n" +
"(please consult log for detail):\n" + dlwarning;
if (isAppDebuggable) {