Small improvement

pull/156/head
M66B 5 years ago
parent 7150d32872
commit 75f05d52b2

@ -97,8 +97,8 @@ public class ConnectionHelper {
static NetworkState getNetworkState(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean metered = prefs.getBoolean("metered", true);
boolean rlah = prefs.getBoolean("rlah", true);
boolean roaming = prefs.getBoolean("roaming", true);
boolean rlah = prefs.getBoolean("rlah", true);
NetworkState state = new NetworkState();
Boolean isMetered = isMetered(context);

@ -22,6 +22,7 @@
android:id="@+id/swMetered"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/title_advanced_metered"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvConnectionRoaming"
@ -80,6 +81,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_roaming"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/spDownload"
@ -102,6 +104,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_rlah"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvRoamingHint"

Loading…
Cancel
Save