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

Commit 5a7e9207 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioManager: only use main looper for AudioPort event handler

Bug: 17336373.
Change-Id: I0a9a7012778f99acbf027ec2928ca222954ad0bd
parent 1611c21d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -47,10 +47,7 @@ class AudioPortEventHandler {
        mListeners = new ArrayList<AudioManager.OnAudioPortUpdateListener>();

        // find the looper for our new event handler
        Looper looper = Looper.myLooper();
        if (looper == null) {
            looper = Looper.getMainLooper();
        }
        Looper looper = Looper.getMainLooper();

        if (looper != null) {
            mHandler = new Handler(looper) {