aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-19 15:46:09 -0700
committerGitHub <noreply@github.com>2020-07-19 15:46:09 -0700
commit2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e (patch)
tree09a756d7de8e8dcde58335c9b854119e925c03b5 /app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
parent7efc3d6f6f95ca9d3323009b5f66d883041a7974 (diff)
parent983a3dfa7462316df4dc01b583edf0cbe7a9d606 (diff)
downloadfrost-2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e.tar.gz
frost-2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e.tar.bz2
frost-2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e.zip
Merge pull request #1699 from AllanWang/prefs
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
index 351f2236..30f8c5f7 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt
@@ -172,6 +172,7 @@ class FrostVideoView @JvmOverloads constructor(
// todo use provided ratio?
val ratio =
min(width.toFloat() / intrinsicWidth, height.toFloat() / intrinsicHeight.toFloat())
+
/**
* Only remap if not expanded and if dimensions have changed
*/