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

Commit 5be68ede authored by Paul McLean's avatar Paul McLean
Browse files

Adding default handler to (re)Routing callbacks where no handler is provided.

Bug: 21669441

Change-Id: I6481652c8703bca6a7e8356614177fd071e71c0e
parent e790c977
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1277,7 +1277,8 @@ public class AudioRecord
                    native_enableDeviceCallback();
                }
                mRoutingChangeListeners.put(
                    listener, new NativeRoutingEventHandlerDelegate(this, listener, handler));
                    listener, new NativeRoutingEventHandlerDelegate(this, listener,
                            handler != null ? handler : new Handler(mInitializationLooper)));
            }
        }
    }
+2 −1
Original line number Diff line number Diff line
@@ -2244,7 +2244,8 @@ public class AudioTrack
                    native_enableDeviceCallback();
                }
                mRoutingChangeListeners.put(
                    listener, new NativeRoutingEventHandlerDelegate(this, listener, handler));
                    listener, new NativeRoutingEventHandlerDelegate(this, listener,
                            handler != null ? handler : new Handler(mInitializationLooper)));
            }
        }
    }