Merge "Fix typo contail->contain" am: 49dcfea031
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1824553 Change-Id: Ia965a1c5aaa32b55bcf1548ae1eba0470745ca33
This commit is contained in:
@@ -928,7 +928,7 @@ public class MediaMetadataRetriever implements AutoCloseable {
|
|||||||
private @NonNull List<Bitmap> getFramesAtIndexInternal(
|
private @NonNull List<Bitmap> getFramesAtIndexInternal(
|
||||||
int frameIndex, int numFrames, @Nullable BitmapParams params) {
|
int frameIndex, int numFrames, @Nullable BitmapParams params) {
|
||||||
if (!"yes".equals(extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO))) {
|
if (!"yes".equals(extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO))) {
|
||||||
throw new IllegalStateException("Does not contail video or image sequences");
|
throw new IllegalStateException("Does not contain video or image sequences");
|
||||||
}
|
}
|
||||||
int frameCount = Integer.parseInt(
|
int frameCount = Integer.parseInt(
|
||||||
extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_FRAME_COUNT));
|
extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_FRAME_COUNT));
|
||||||
@@ -1046,7 +1046,7 @@ public class MediaMetadataRetriever implements AutoCloseable {
|
|||||||
|
|
||||||
private Bitmap getImageAtIndexInternal(int imageIndex, @Nullable BitmapParams params) {
|
private Bitmap getImageAtIndexInternal(int imageIndex, @Nullable BitmapParams params) {
|
||||||
if (!"yes".equals(extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE))) {
|
if (!"yes".equals(extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE))) {
|
||||||
throw new IllegalStateException("Does not contail still images");
|
throw new IllegalStateException("Does not contain still images");
|
||||||
}
|
}
|
||||||
|
|
||||||
String imageCount = extractMetadata(MediaMetadataRetriever.METADATA_KEY_IMAGE_COUNT);
|
String imageCount = extractMetadata(MediaMetadataRetriever.METADATA_KEY_IMAGE_COUNT);
|
||||||
|
|||||||
Reference in New Issue
Block a user