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

Commit 50853fde authored by Ram Indani's avatar Ram Indani Committed by Android (Google) Code Review
Browse files

Merge "Avoid throwing an Exception when setFrameRate is not implemented" into main

parents 3e371a0a 9a4e6498
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1073,8 +1073,7 @@ public class Surface implements Parcelable {
            if (error == -EINVAL) {
                throw new IllegalArgumentException("Invalid argument to Surface.setFrameRate()");
            } else if (error != 0) {
                throw new RuntimeException("Failed to set frame rate on Surface. Native error: "
                        + error);
                Log.e(TAG, "Failed to set frame rate on Surface. Native error: " + error);
            }
        }
    }