[Android] Use long type on video_resume_time setting

Sébastien Toque git at videolan.org
Fri Apr 10 08:47:38 CEST 2020


vlc-android | branch: master | Sébastien Toque <xilasz at gmail.com> | Thu Apr  9 22:45:33 2020 +0200| [f92aca6aa933bbaf1e1481bb0cb9ab04f54e1967] | committer: Sébastien Toque

Use long type on video_resume_time setting

> https://code.videolan.org/videolan/vlc-android/commit/f92aca6aa933bbaf1e1481bb0cb9ab04f54e1967
---

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index f7fe77427..ac901a773 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -445,7 +445,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
         sDisplayRemainingTime = settings.getBoolean(KEY_REMAINING_TIME_DISPLAY, false)
         // Clear the resume time, since it is only used for resumes in external
         // videos.
-        settings.putSingle(VIDEO_RESUME_TIME, -1)
+        settings.putSingle(VIDEO_RESUME_TIME, -1L)
         // Paused flag - per session too, like the subs list.
         this.volumeControlStream = AudioManager.STREAM_MUSIC
 
@@ -2331,7 +2331,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
                                     showConfirmResumeDialog()
                                     return
                                 } else {
-                                    settings.putSingle(VIDEO_RESUME_TIME, -1)
+                                    settings.putSingle(VIDEO_RESUME_TIME, -1L)
                                     startTime = rTime
                                 }
                             }



More information about the Android mailing list