summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-07-13 10:26:22 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-07-13 10:26:22 -0700
commitf56513f6bae56eb96147dc1783a214326c1b43c3 (patch)
treee5d53fd342c246a4eb5345c45182915efa0fce3f /src/com/android/launcher3/model
parent98ff38aa48b4c9d3e33c128fae2d5c851e49a3eb (diff)
downloadandroid_packages_apps_Trebuchet-f56513f6bae56eb96147dc1783a214326c1b43c3.tar.gz
android_packages_apps_Trebuchet-f56513f6bae56eb96147dc1783a214326c1b43c3.tar.bz2
android_packages_apps_Trebuchet-f56513f6bae56eb96147dc1783a214326c1b43c3.zip
Hide spammy WidgetModel log behind a DEBUG flag
Change-Id: I0119855655516d9fdc114334a974b8766aabf674
Diffstat (limited to 'src/com/android/launcher3/model')
-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;
}