Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment