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

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

Merge "Use updated override config to notify listeners." into pi-dev

parents e9549d08 20c34565
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -130,9 +130,11 @@ public abstract class ConfigurationContainer<E extends ConfigurationContainer> {
        // Update merged override config of this container and all its children.
        onMergedOverrideConfigurationChanged();

        // Use the updated override configuration to notify listeners.
        mTmpConfig.setTo(mOverrideConfiguration);
        // Inform listeners of the change.
        for (int i = mChangeListeners.size() - 1; i >=0; --i) {
            mChangeListeners.get(i).onOverrideConfigurationChanged(overrideConfiguration);
            mChangeListeners.get(i).onOverrideConfigurationChanged(mTmpConfig);
        }
    }