diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2017-08-29 11:13:13 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2017-08-29 11:13:13 -0700 |
commit | 36628a11229adfe528aefbcd4b9bae1f6dc409a4 (patch) | |
tree | 7841c7bd984e80d0dc1dc1824c04ac43c0f1691c /src/com | |
parent | 9b745a82bf5cf8bf9383b63179d0a750e9ab9ab6 (diff) | |
download | android_packages_apps_Trebuchet-36628a11229adfe528aefbcd4b9bae1f6dc409a4.tar.gz android_packages_apps_Trebuchet-36628a11229adfe528aefbcd4b9bae1f6dc409a4.tar.bz2 android_packages_apps_Trebuchet-36628a11229adfe528aefbcd4b9bae1f6dc409a4.zip |
Disable debugging on Widgets Diff Reporter
Bug: 65160070
Change-Id: Idee5b850d0dd5abaaa8571533adf802e276c4495
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/widget/WidgetsDiffReporter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/launcher3/widget/WidgetsDiffReporter.java b/src/com/android/launcher3/widget/WidgetsDiffReporter.java index d9c9ef9e3..52deec32b 100644 --- a/src/com/android/launcher3/widget/WidgetsDiffReporter.java +++ b/src/com/android/launcher3/widget/WidgetsDiffReporter.java @@ -29,7 +29,7 @@ import java.util.Iterator; * Do diff on widget's tray list items and call the {@link NotifyListener} methods accordingly. */ public class WidgetsDiffReporter { - private final boolean DEBUG = true; + private final boolean DEBUG = false; private final String TAG = "WidgetsDiffReporter"; private final IconCache mIconCache; private NotifyListener mListener; @@ -89,12 +89,13 @@ public class WidgetsDiffReporter { index = orgRowEntry != null? currentEntries.indexOf(orgRowEntry): currentEntries.size(); currentEntries.add(index, newRowEntry); - newRowEntry = newIter.hasNext() ? newIter.next() : null; - mListener.notifyItemInserted(index); if (DEBUG) { Log.d(TAG, String.format("notifyItemInserted called (%d)%s", index, newRowEntry.titleSectionName)); } + newRowEntry = newIter.hasNext() ? newIter.next() : null; + mListener.notifyItemInserted(index); + } else { // same package name but, // did the icon, title, etc, change? |