OSDN Git Service

Hide spammy WidgetModel log behind a DEBUG flag
authorHyunyoung Song <hyunyoungs@google.com>
Mon, 13 Jul 2015 17:26:22 +0000 (10:26 -0700)
committerHyunyoung Song <hyunyoungs@google.com>
Mon, 13 Jul 2015 17:26:22 +0000 (10:26 -0700)
Change-Id: I0119855655516d9fdc114334a974b8766aabf674

src/com/android/launcher3/model/WidgetsModel.java

index 09a3242..15d3717 100644 (file)
@@ -122,8 +122,10 @@ public class WidgetsModel {
                 continue;
             }
             if (mAppFilter != null && !mAppFilter.shouldShowApp(componentName)) {
-                Log.d(TAG, String.format("%s is filtered and not added to the widget tray.",
+                if (DEBUG) {
+                    Log.d(TAG, String.format("%s is filtered and not added to the widget tray.",
                         packageName));
+                }
                 continue;
             }