Don't send buffering events by default on F-Droid build

This commit is contained in:
Javi Rueda 2020-08-28 14:57:11 +02:00
parent 49971d1453
commit 726fdd0220
2 changed files with 3 additions and 3 deletions

View file

@ -299,11 +299,11 @@ public class FileViewFragment extends BaseFragment implements
}
} else if (playbackState == Player.STATE_BUFFERING) {
Context ctx = getContext();
boolean sendBufferingEvents = true;
boolean sendBufferingEvents = false;
if (ctx != null) {
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(ctx);
sendBufferingEvents = sp.getBoolean(MainActivity.PREFERENCE_KEY_SEND_BUFFERING_EVENTS, true);
sendBufferingEvents = sp.getBoolean(MainActivity.PREFERENCE_KEY_SEND_BUFFERING_EVENTS, false);
}
if (MainActivity.appPlayer != null && MainActivity.appPlayer.getCurrentPosition() > 0 && sendBufferingEvents) {

View file

@ -67,7 +67,7 @@
<SwitchPreferenceCompat
app:key="io.lbry.browser.preference.other.SendBufferingEvents"
app:title="@string/send_buffering_events"
app:defaultValue="true"
app:defaultValue="false"
app:iconSpaceReserved="false"
app:singleLineTitle="false" />
</PreferenceCategory>