OSDN Git Service

app shelf: Change logging level
authorXiaohui Chen <xiaohuic@google.com>
Tue, 10 Nov 2015 23:02:29 +0000 (15:02 -0800)
committerXiaohui Chen <xiaohuic@google.com>
Tue, 10 Nov 2015 23:02:29 +0000 (15:02 -0800)
It seems common for apk to not have launcher activity. I see it quite
a lot during SUW. It does not seems to be an error.

Change-Id: Iee417b0614ef17940371da9710ff14adbad82e3a

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarApps.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarAppsModel.java

index a51f62a..58c9722 100644 (file)
@@ -1060,7 +1060,7 @@ class NavigationBarApps extends LinearLayout
             ris = packageManager.queryIntentActivitiesAsUser(intentToResolve, 0, userId);
         }
         if (ris == null || ris.size() <= 0) {
-            Slog.e(TAG, "Failed to build intent for " + packageName);
+            Slog.i(TAG, "Failed to build intent for " + packageName);
             return null;
         }
         return new ComponentName(ris.get(0).activityInfo.packageName,
index d527f29..76a9798 100644 (file)
@@ -179,7 +179,7 @@ class NavigationBarAppsModel {
             }
         }
 
-        Slog.e(TAG, "Activity doesn't have category Intent.CATEGORY_LAUNCHER " + component);
+        Slog.i(TAG, "Activity doesn't have category Intent.CATEGORY_LAUNCHER " + component);
         return null;
     }