Skip to content

Commit e90f2ce

Browse files
committed
fix(Settings): remove max preload setting
As the max preload (buffer duration) setting is now set automatically, there is no longer the need to keep the setting around. Ref: 405a916
1 parent 405a916 commit e90f2ce

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

app/src/main/java/com/github/libretube/constants/PreferenceKeys.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ object PreferenceKeys {
6060
const val SEEK_INCREMENT = "seek_increment"
6161
const val DEFAULT_RESOLUTION = "default_res"
6262
const val DEFAULT_RESOLUTION_MOBILE = "default_res_mobile"
63-
const val BUFFERING_GOAL = "buffering_goal"
6463
const val PLAYER_AUDIO_FORMAT = "player_audio_format"
6564
const val PLAYER_AUDIO_QUALITY = "player_audio_quality"
6665
const val PLAYER_AUDIO_QUALITY_MOBILE = "player_audio_quality_mobile"

app/src/main/java/com/github/libretube/helpers/PlayerHelper.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,6 @@ object PlayerHelper {
188188
false
189189
)
190190

191-
private val bufferingGoal: Int
192-
get() = PreferenceHelper.getString(
193-
PreferenceKeys.BUFFERING_GOAL,
194-
"50"
195-
).toInt() * 1000
196-
197191
val sponsorBlockEnabled: Boolean
198192
get() = PreferenceHelper.getBoolean(
199193
"sb_enabled_key",

app/src/main/res/values/strings.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@
158158
<string name="show_updates">Check updates automatically</string>
159159
<string name="related_streams">Related content</string>
160160
<string name="related_streams_summary">Show similar streams alongside what you watch</string>
161-
<string name="buffering_goal">Preloading</string>
162-
<string name="buffering_goal_summary">Max. amount of seconds of video to buffer</string>
163161
<string name="playerVideoFormat">Video format for player</string>
164162
<string name="no_audio">No audio</string>
165163
<string name="no_video">No video</string>

app/src/main/res/xml/player_settings.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,6 @@
166166

167167
<PreferenceCategory app:title="@string/misc">
168168

169-
<com.github.libretube.ui.preferences.EditNumberPreference
170-
android:icon="@drawable/ic_time"
171-
app:defaultValue="50"
172-
app:key="buffering_goal"
173-
app:summary="@string/buffering_goal_summary"
174-
app:title="@string/buffering_goal" />
175-
176169
<SwitchPreferenceCompat
177170
android:icon="@drawable/ic_call"
178171
android:summary="@string/playback_during_call_summary"

0 commit comments

Comments
 (0)