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

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

Merge "Only try to dup valid SyncFence's" into main

parents 380bdfe3 980db493
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1157,7 +1157,11 @@ public class ImageWriter implements AutoCloseable {
        @Override
        public void setFence(@NonNull SyncFence fence) throws IOException {
            throwISEIfImageIsInvalid();
            if (fence.isValid()) {
                nativeSetFenceFd(fence.getFdDup().detachFd());
            } else {
                nativeSetFenceFd(-1);
            }
        }

        @Override