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

Commit 712b29e7 authored by Anubhav Gupta's avatar Anubhav Gupta Committed by Android Git Automerger
Browse files

am aaf71761: am f99a9737: Check for AVRCP handler validity before cleanup

* commit 'aaf71761':
  Check for AVRCP handler validity before cleanup
parents ab97d847 aaf71761
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -82,14 +82,13 @@ public class AvrcpControllerService extends ProfileService {
    }

    protected boolean cleanup() {
        if (mHandler != null) {
            mHandler.removeCallbacksAndMessages(null);
            Looper looper = mHandler.getLooper();
        if (looper != null) {
            looper.quit();
            if (looper != null) looper.quit();
        }

        clearAvrcpControllerService();

        cleanupNative();

        return true;