1
0
mirror of https://github.com/accelforce/Yuito synced 2025-02-15 19:10:44 +01:00
This commit is contained in:
kyori19 2020-05-04 17:49:59 +09:00
parent 1f05df670b
commit 5b0e4bec51
2 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ public class TimelineFragment extends SFragment implements
private boolean initialUpdateFailed = false;
private SharedPreferences preferences;
private boolean reduceTimelineRoading;
private boolean reduceTimelineLoading;
private boolean checkMobileNetwork;
private WebSocket webSocket;
@ -980,7 +980,7 @@ public class TimelineFragment extends SFragment implements
}
case "limitedBandwidthActive":
case "limitedBandwidthOnlyMobileNetwork":
case "limitedBandwidthTimelineRoading": {
case "limitedBandwidthTimelineLoading": {
updateLimitedBandwidthStatus();
break;
}
@ -988,7 +988,7 @@ public class TimelineFragment extends SFragment implements
}
private void updateLimitedBandwidthStatus() {
reduceTimelineRoading = preferences.getBoolean("limitedBandwidthActive", false) && preferences.getBoolean("limitedBandwidthTimelineRoading", true);
reduceTimelineLoading = preferences.getBoolean("limitedBandwidthActive", false) && preferences.getBoolean("limitedBandwidthTimelineLoading", true);
checkMobileNetwork = preferences.getBoolean("limitedBandwidthOnlyMobileNetwork", true);
}
@ -1465,7 +1465,7 @@ public class TimelineFragment extends SFragment implements
boolean reloadTimeline = true;
if (reduceTimelineRoading) {
if (reduceTimelineLoading) {
reloadTimeline = false;
Activity activity = getActivity();
if (checkMobileNetwork && activity != null) {

View File

@ -110,7 +110,7 @@
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="limitedBandwidthTimelineRoading"
android:key="limitedBandwidthTimelineLoading"
android:title="@string/pref_title_limited_bandwidth_timeline"
android:dependency="limitedBandwidthActive"
app:singleLineTitle="false" />