Fix issues detected by Paparazzi

This commit is contained in:
Benoit Marty 2026-01-26 18:23:32 +01:00 committed by Benoit Marty
parent 8220e4bae0
commit ba70938667
3 changed files with 13 additions and 4 deletions

View file

@ -142,7 +142,9 @@ class ExoPlayerForPreview(
override fun getMediaItemCount(): Int = throw NotImplementedError()
override fun getMediaItemAt(index: Int): MediaItem = throw NotImplementedError()
override fun getDuration(): Long = throw NotImplementedError()
override fun getCurrentPosition(): Long = throw NotImplementedError()
// Cannot throw, this method is invoked when recording Paparazzi screenshots.
override fun getCurrentPosition(): Long = 0L
override fun getBufferedPosition(): Long = throw NotImplementedError()
override fun getBufferedPercentage(): Int = throw NotImplementedError()
override fun getTotalBufferedDuration(): Long = throw NotImplementedError()