mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
refact: remove bloated settings as requested
Remove settings entry for not bloating settings
This commit is contained in:
parent
a25a625538
commit
42dcdb400f
4 changed files with 5 additions and 26 deletions
|
@ -379,6 +379,7 @@ abstract class AbstractPlayerFragment(
|
|||
// return super.onMediaButtonEvent(mediaButtonEvent)
|
||||
// }
|
||||
//}
|
||||
|
||||
/** This receives the events from the player, if you want to append functionality you do it here,
|
||||
* do note that this only receives events for UI changes,
|
||||
* and returning early WONT stop it from changing in eg the player time or pause status */
|
||||
|
@ -440,14 +441,8 @@ abstract class AbstractPlayerFragment(
|
|||
|
||||
is VideoEndedEvent -> {
|
||||
context?.let { ctx ->
|
||||
if (PreferenceManager.getDefaultSharedPreferences(ctx)
|
||||
?.getBoolean(
|
||||
ctx.getString(R.string.reset_delay_key),
|
||||
false
|
||||
) == true
|
||||
) {
|
||||
// Resets subtitle delay on ended video
|
||||
player.setSubtitleOffset(0)
|
||||
}
|
||||
|
||||
// Only play next episode if autoplay is on (default)
|
||||
if (PreferenceManager.getDefaultSharedPreferences(ctx)
|
||||
|
|
|
@ -1118,13 +1118,8 @@ class CS3IPlayer : IPlayer {
|
|||
}
|
||||
|
||||
Player.STATE_ENDED -> {
|
||||
if (PreferenceManager.getDefaultSharedPreferences(context)
|
||||
?.getBoolean(
|
||||
context.getString(com.lagradost.cloudstream3.R.string.reset_delay_key),
|
||||
false) == true
|
||||
) {
|
||||
// Resets subtitle delay on ended video
|
||||
setSubtitleOffset(0)
|
||||
}
|
||||
|
||||
// Only play next episode if autoplay is on (default)
|
||||
if (PreferenceManager.getDefaultSharedPreferences(context)
|
||||
|
|
|
@ -768,7 +768,4 @@
|
|||
<string name="audio_book_singular">Audio Book</string>
|
||||
<string name="custom_media_singluar">Media</string>
|
||||
<string name="reset_btn">Reset</string>
|
||||
<string name="reset_delay_settings">Reset delay on next episode</string>
|
||||
<string name="reset_delay_settings_des">Resets subtitle delay on next episode</string>
|
||||
<string name="reset_delay_key" translatable="false">reset_delay_key</string>
|
||||
</resources>
|
|
@ -80,14 +80,6 @@
|
|||
android:title="@string/autoplay_next_settings"
|
||||
app:defaultValue="true"
|
||||
app:key="@string/autoplay_next_key" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:icon="@drawable/ic_baseline_skip_next_24"
|
||||
android:summary="@string/reset_delay_settings_des"
|
||||
android:title="@string/reset_delay_settings"
|
||||
app:defaultValue="false"
|
||||
app:key="@string/reset_delay_key"/>
|
||||
<SwitchPreference
|
||||
android:icon="@drawable/ic_baseline_skip_next_24"
|
||||
android:title="@string/video_skip_op"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue