mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-11 20:46:04 +01:00
make sure nothing weird happens here
This commit is contained in:
parent
eb8b6117b9
commit
1cbf1603de
@ -272,7 +272,7 @@ public class PlayerController {
|
|||||||
Context context = YouTubeTikTokRoot_Application.getAppContext();
|
Context context = YouTubeTikTokRoot_Application.getAppContext();
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
SharedPreferences preferences = SponsorBlockSettings.getPreferences(context);
|
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().putInt(SponsorBlockSettings.PREFERENCES_KEY_SKIPPED_SEGMENTS, skippedSegments + 1).apply();
|
||||||
preferences.edit().putLong(SponsorBlockSettings.PREFERENCES_KEY_SKIPPED_SEGMENTS_TIME, newSkippedTime).apply();
|
preferences.edit().putLong(SponsorBlockSettings.PREFERENCES_KEY_SKIPPED_SEGMENTS_TIME, newSkippedTime).apply();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user