Merge "Fixes IllegalStateException caused by child already having parent"
This commit is contained in:
committed by
Android (Google) Code Review
commit
615f2602d5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user