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

Commit 28d2349d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CameraExtensionProxy: Enhance error callback with failure reason" into main

parents ce2d8171 48f211e6
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1276,6 +1276,20 @@ public class CameraExtensionsProxyService extends Service {
            }
        }

        @Override
        public void onCaptureFailed(int captureSequenceId, int reason) {
            if (Flags.concertMode()) {
                if (mCaptureCallback != null) {
                    try {
                        mCaptureCallback.onCaptureProcessFailed(captureSequenceId, reason);
                    } catch (RemoteException e) {
                        Log.e(TAG, "Failed to notify capture failure due to remote " +
                                "exception!");
                    }
                }
            }
        }

        @Override
        public void onCaptureSequenceCompleted(int captureSequenceId) {
            if (mCaptureCallback != null) {