Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcf1a921 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topic "am-8538fe8c-8826-45fb-b75a-398ba33cc369" into ub-launcher3-master

* changes:
  [automerger] Disable debugging on Widgets Diff Reporter Bug: 65160070 am: 36628a11
  Disable debugging on Widgets Diff Reporter Bug: 65160070
parents a6abdd6d 17cf3b1a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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?