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

Commit 4631f1ad authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "Cleanup KeyguardIndicationController on tearDown" into tm-dev

parents f05f4ec6 dd669177
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -293,6 +293,14 @@ public class KeyguardIndicationController {
        }
    }

    /**
     * Cleanup
     */
    public void destroy() {
        mHandler.removeCallbacksAndMessages(null);
        mBroadcastDispatcher.unregisterReceiver(mBroadcastReceiver);
    }

    private void handleAlignStateChanged(int alignState) {
        String alignmentIndication = "";
        if (alignState == DockManager.ALIGN_STATE_POOR) {
+4 −0
Original line number Diff line number Diff line
@@ -226,6 +226,10 @@ public class KeyguardIndicationControllerTest extends SysuiTestCase {
    @After
    public void tearDown() throws Exception {
        mTextView.setAnimationsEnabled(true);
        if (mController != null) {
            mController.destroy();
            mController = null;
        }
    }

    private void createController() {