Merge "Handle exceptions on attach" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-30 01:12:51 +00:00
committed by Android (Google) Code Review

View File

@@ -1945,7 +1945,7 @@ public class SoundTrigger {
Looper looper = handler != null ? handler.getLooper() : Looper.getMainLooper();
try {
return new SoundTriggerModule(getService(), moduleId, listener, looper);
} catch (RemoteException e) {
} catch (Exception e) {
Log.e(TAG, "", e);
return null;
}