OSDN Git Service

Merge "Fix crash for showing linker errors for apps with no label" into nyc-dev
authorAdam Powell <adamp@google.com>
Thu, 3 Mar 2016 17:04:22 +0000 (17:04 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 3 Mar 2016 17:04:23 +0000 (17:04 +0000)
core/java/android/app/Activity.java

index be89b20..b87e9fa 100644 (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) {