summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-08-29 18:23:04 (GMT)
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-08-29 18:23:04 (GMT)
commitf8dcb365b4fca06775b417924f9e7f594fa850ec (patch)
treed1aeb67352003b106b20d9d42f2f974c266e609e
parent3909cf5b5f873e6cda2843890cf8c4348572dca0 (diff)
parent36628a11229adfe528aefbcd4b9bae1f6dc409a4 (diff)
downloadandroid_packages_apps_Trebuchet-f8dcb365b4fca06775b417924f9e7f594fa850ec.zip
android_packages_apps_Trebuchet-f8dcb365b4fca06775b417924f9e7f594fa850ec.tar.gz
android_packages_apps_Trebuchet-f8dcb365b4fca06775b417924f9e7f594fa850ec.tar.bz2
Merge "Disable debugging on Widgets Diff Reporter Bug: 65160070" into ub-launcher3-dorval-polish2
-rw-r--r--src/com/android/launcher3/widget/WidgetsDiffReporter.java7
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 d9c9ef9..52deec3 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?