diff --git a/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterViewController.java b/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterViewController.java index 198aa4ab82777..6dfbd0cc22552 100644 --- a/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterViewController.java +++ b/packages/SystemUI/src/com/android/systemui/battery/BatteryMeterViewController.java @@ -47,12 +47,6 @@ public class BatteryMeterViewController extends ViewController @Override protected void onViewDetached() { - destroy(); - } - - @Override - public void destroy() { - super.destroy(); mConfigurationController.removeCallback(mConfigurationListener); } } \ No newline at end of file diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java index 8770e86df7351..796df5507f4c7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java @@ -159,17 +159,6 @@ public class KeyguardStatusBarViewController extends ViewController { } } - /** - * Destroys this controller so that it never receives view attach and detach events again. - * Does nothing if the view is null. - */ - public void destroy() { - if (mView != null) { - mView.removeOnAttachStateChangeListener(mOnAttachStateListener); - } - } - /** * Called when the view is attached and a call to {@link #init()} has been made in either order. */