make sure nothing weird happens here

This commit is contained in:
caneleex 2021-07-19 21:53:28 +02:00
parent 1488f03a6c
commit 2afc49ed49
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ public class PlayerController {
Context context = YouTubeTikTokRoot_Application.getAppContext();
if (context != null) {
SharedPreferences preferences = SponsorBlockSettings.getPreferences(context);
long newSkippedTime = skippedTime + segment.end - segment.start;
long newSkippedTime = skippedTime + (segment.end - segment.start);
preferences.edit().putInt(SponsorBlockSettings.PREFERENCES_KEY_SKIPPED_SEGMENTS, skippedSegments + 1).apply();
preferences.edit().putLong(SponsorBlockSettings.PREFERENCES_KEY_SKIPPED_SEGMENTS_TIME, newSkippedTime).apply();
}