| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ChildNode.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ChildNode.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ChildNode.java
|
| index e293b674dadd66ed2e748555db7e0a73da80c6cc..9823c1e884f6bdd66f70e93bdab3d90fed73490a 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ChildNode.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ChildNode.java
|
| @@ -22,8 +22,12 @@ public void setParent(NodeParent parent) {
|
| mParent = parent;
|
| }
|
|
|
| + protected void notifyItemRangeChanged(int index, int count, Object payload) {
|
| + if (mParent != null) mParent.onItemRangeChanged(this, index, count, payload);
|
| + }
|
| +
|
| protected void notifyItemRangeChanged(int index, int count) {
|
| - if (mParent != null) mParent.onItemRangeChanged(this, index, count);
|
| + notifyItemRangeChanged(index, count, null);
|
| }
|
|
|
| protected void notifyItemRangeInserted(int index, int count) {
|
| @@ -34,6 +38,10 @@ protected void notifyItemRangeRemoved(int index, int count) {
|
| if (mParent != null) mParent.onItemRangeRemoved(this, index, count);
|
| }
|
|
|
| + protected void notifyItemChanged(int index, Object payload) {
|
| + notifyItemRangeChanged(index, 1, payload);
|
| + }
|
| +
|
| protected void notifyItemChanged(int index) {
|
| notifyItemRangeChanged(index, 1);
|
| }
|
|
|