Skip to content

Commit

Permalink
chore: Bump version
Browse files Browse the repository at this point in the history
also don't apply video position when it's 0
  • Loading branch information
abdallahmehiz committed Sep 14, 2024
1 parent 48678e9 commit ac95c8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId = "live.mehiz.mpvkt"
minSdk = 21
targetSdk = 34
versionCode = 11
versionName = "0.1.5"
versionCode = 12
versionName = "0.1.6"

vectorDrawables {
useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ class PlayerActivity : AppCompatActivity() {
player.playbackSpeed = it.playbackSpeed
MPVLib.setPropertyDouble("audio-delay", audioDelay)
}
player.timePos = if (playerPreferences.savePositionOnQuit.get()) state?.lastPosition ?: 0 else 0
if (playerPreferences.savePositionOnQuit.get()) {
state?.lastPosition?.let { if (it != 0) player.timePos = it }
}
MPVLib.setPropertyDouble("sub-speed", state?.subSpeed ?: subtitlesPreferences.defaultSubSpeed.get().toDouble())
}

Expand Down

0 comments on commit ac95c8d

Please sign in to comment.