Merge "Fixes IllegalStateException caused by child already having parent"

This commit is contained in:
TreeHugger Robot
2019-03-05 00:48:35 +00:00
committed by Android (Google) Code Review

View File

@@ -148,6 +148,7 @@ public class KeyguardClockSwitch extends RelativeLayout {
Dependency.get(StatusBarStateController.class).removeCallback(mStateListener);
Dependency.get(SysuiColorExtractor.class)
.removeOnColorsChangedListener(mColorsListener);
setClockPlugin(null);
}
private void setClockPlugin(ClockPlugin plugin) {