am 9de61ae0: Merge "Fix video scaling mode validity check." into jb-dev
* commit '9de61ae0ed40fcb147e09797bfb22dcea0b89df6': Fix video scaling mode validity check.
This commit is contained in:
@@ -737,7 +737,7 @@ public class MediaPlayer
|
|||||||
* @see MediaPlayer#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
|
* @see MediaPlayer#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
|
||||||
*/
|
*/
|
||||||
public void setVideoScalingMode(int mode) {
|
public void setVideoScalingMode(int mode) {
|
||||||
if (isVideoScalingModeSupported(mode)) {
|
if (!isVideoScalingModeSupported(mode)) {
|
||||||
final String msg = "Scaling mode " + mode + " is not supported";
|
final String msg = "Scaling mode " + mode + " is not supported";
|
||||||
throw new IllegalArgumentException(msg);
|
throw new IllegalArgumentException(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user