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

Commit 9a4e6498 authored by ramindani's avatar ramindani
Browse files

Avoid throwing an Exception when setFrameRate is not implemented

Test: m
BUG: 317796823
Change-Id: I3d482a7de947d9660941be954ea108c28e42eaff
parent f3ff3b5f
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);
            }
        }
    }