summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-07-13 17:36:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-13 17:36:05 +0000
commitcbab1cb44f4fca4ea80ec2aeb63b55b9ea5d9e2e (patch)
treef14b07d0da84323df6ee7c0206040edd054b36e2 /src
parent633ce45b0538cc2a941045be85ad742187a78c41 (diff)
parentf56513f6bae56eb96147dc1783a214326c1b43c3 (diff)
downloadandroid_packages_apps_Trebuchet-cbab1cb44f4fca4ea80ec2aeb63b55b9ea5d9e2e.tar.gz
android_packages_apps_Trebuchet-cbab1cb44f4fca4ea80ec2aeb63b55b9ea5d9e2e.tar.bz2
android_packages_apps_Trebuchet-cbab1cb44f4fca4ea80ec2aeb63b55b9ea5d9e2e.zip
Merge "Hide spammy WidgetModel log behind a DEBUG flag" into ub-launcher3-burnaby
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/model/WidgetsModel.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/model/WidgetsModel.java b/src/com/android/launcher3/model/WidgetsModel.java
index 09a3242b5..15d3717cd 100644
--- a/src/com/android/launcher3/model/WidgetsModel.java
+++ b/src/com/android/launcher3/model/WidgetsModel.java
@@ -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;
}