package ca.antonious.viewcelladapter.decorators;

import ca.antonious.viewcelladapter.sections.AbstractSection;

/**
 * Created by George on 2016-12-17.
 */

public abstract class SectionDecorator extends AbstractSection {
    private AbstractSection decoratedSection;

    public SectionDecorator(AbstractSection decoratedSection) {
        this.decoratedSection = decoratedSection;
    }

    public AbstractSection getDecoratedSection() {
        return decoratedSection;
    }
}

@@ -43,16 +43,78 @@
 ators;%0A%0A
+import ca.antonious.viewcelladapter.internal.SectionObserver;%0A
 import c
@@ -276,16 +276,43 @@
 Section 
+implements SectionObserver 
 %7B%0A    pr
@@ -462,24 +462,73 @@
 tedSection;%0A
+        this.decoratedSection.addObserver(this);%0A
     %7D%0A%0A    p
@@ -611,11 +611,95 @@
 n;%0A    %7D
+%0A%0A    @Override%0A    public void onDataChanged() %7B%0A        notifyDataChanged();%0A    %7D
 %0A%7D%0A

Update section decorator to handle notifications