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

Commit 5ac2d1cb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle exception on setCaptureState"

parents c1301091 4b42291d
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -16,11 +16,6 @@

package com.android.server.soundtrigger_middleware;

import android.media.ICaptureStateListener;
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.util.Log;

import java.util.concurrent.Semaphore;
@@ -78,7 +73,11 @@ class ExternalCaptureStateTracker {
     * @param active true when external capture is active.
     */
    private void setCaptureState(boolean active) {
        try {
            mListener.accept(active);
        } catch (Exception e) {
            Log.e(TAG, "Exception caught while setting capture state", e);
        }
    }

    /**