We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dbcfae commit 6e1a85aCopy full SHA for 6e1a85a
1 file changed
app/src/main/kotlin/org/fossify/gallery/fragments/PhotoFragment.kt
@@ -964,7 +964,7 @@ class PhotoFragment : ViewPagerFragment() {
964
addListener(object : Player.Listener {
965
override fun onPlaybackStateChanged(playbackState: Int) {
966
if (playbackState == Player.STATE_ENDED) {
967
- stopMotionPhotoVideo()
+ activity?.runOnUiThread { stopMotionPhotoVideo() }
968
}
969
970
@@ -980,7 +980,7 @@ class PhotoFragment : ViewPagerFragment() {
980
981
982
override fun onPlayerError(error: PlaybackException) {
983
984
985
})
986
0 commit comments