Skip to content

Commit

Permalink
[video][android] Fix "cover" and "fill" content fit (expo#29364)
Browse files Browse the repository at this point in the history
  • Loading branch information
RRaideRR authored Jun 2, 2024
1 parent e2e8816 commit 15f314d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/expo-video/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### 🐛 Bug fixes

- [Android] Fix wrong content fit "fill" and "cover". ([#29364](https://github.com/expo/expo/pull/29364) by [@RRaideRR](https://github.com/RRaideRR))

### 💡 Others

## 1.1.10 - 2024-05-29
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ enum class ContentFit(val value: String) : Enumerable {
fun toResizeMode(): Int {
return when (this) {
CONTAIN -> AspectRatioFrameLayout.RESIZE_MODE_FIT
FILL -> AspectRatioFrameLayout.RESIZE_MODE_ZOOM
COVER -> AspectRatioFrameLayout.RESIZE_MODE_FILL
FILL -> AspectRatioFrameLayout.RESIZE_MODE_FILL
COVER -> AspectRatioFrameLayout.RESIZE_MODE_ZOOM
}
}
}

0 comments on commit 15f314d

Please sign in to comment.