Skip to content

Commit

Permalink
fix: crash on videos without chapters
Browse files Browse the repository at this point in the history
 also don't obfuscate when optimizing with r8
  • Loading branch information
abdallahmehiz committed Aug 24, 2024
1 parent de79886 commit e824c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-dontobfuscate
-keep,allowoptimization class is.xyz.mpv.** { public protected *; }
-keep,allowoptimization class com.arthenica.** { public protected *; }
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class PlayerViewModel(
}

fun updateChapter(index: Long) {
if (chapters.isEmpty()) return
_currentChapter.update { chapters[index.toInt()] }
}

Expand Down

0 comments on commit e824c65

Please sign in to comment.