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

Commit 79a9cd40 authored by Bryan Mawhinney's avatar Bryan Mawhinney
Browse files

Fix video scaling mode validity check.

Change-Id: Ib7adead2758d50cae67741364801e966a82ad5ba
parent 6a160984
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -737,7 +737,7 @@ public class MediaPlayer
     * @see MediaPlayer#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
     */
    public void setVideoScalingMode(int mode) {
        if (isVideoScalingModeSupported(mode)) {
        if (!isVideoScalingModeSupported(mode)) {
            final String msg = "Scaling mode " + mode + " is not supported";
            throw new IllegalArgumentException(msg);
        }