Skip to content
Snippets Groups Projects
Verified Commit efb74c17 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes #51

parent 040e799b
No related branches found
No related tags found
No related merge requests found
...@@ -218,6 +218,7 @@ abstract class NetworkBaseFragment : SettingsFragment(), SettingsFragment.Savabl ...@@ -218,6 +218,7 @@ abstract class NetworkBaseFragment : SettingsFragment(), SettingsFragment.Savabl
customratelimitsEnabled.setDependent(customratelimitsGroup) customratelimitsEnabled.setDependent(customratelimitsGroup)
customratelimitsUnlimited.setOnCheckedChangeListener { _, isChecked -> customratelimitsUnlimited.setOnCheckedChangeListener { _, isChecked ->
customratelimitsBurstSize.isEnabled = !isChecked customratelimitsBurstSize.isEnabled = !isChecked
customratelimitsBurstSize.isEnabled = !isChecked
} }
return view return view
......
...@@ -302,6 +302,11 @@ ...@@ -302,6 +302,11 @@
style="@style/Widget.CoreSettings.DependentGroup" style="@style/Widget.CoreSettings.DependentGroup"
tools:visibility="visible"> tools:visibility="visible">
<android.support.v7.widget.SwitchCompat
android:id="@+id/customratelimits_unlimited"
style="@style/Widget.CoreSettings.PrimaryItemSwitch"
android:text="@string/settings_network_customratelimits_unlimited" />
<android.support.design.widget.TextInputLayout <android.support.design.widget.TextInputLayout
style="@style/Widget.CoreSettings.EditTextLayout" style="@style/Widget.CoreSettings.EditTextLayout"
android:hint="@string/settings_network_customratelimits_burstsize"> android:hint="@string/settings_network_customratelimits_burstsize">
...@@ -312,11 +317,6 @@ ...@@ -312,11 +317,6 @@
tools:text="5" /> tools:text="5" />
</android.support.design.widget.TextInputLayout> </android.support.design.widget.TextInputLayout>
<android.support.v7.widget.SwitchCompat
android:id="@+id/customratelimits_unlimited"
style="@style/Widget.CoreSettings.PrimaryItemSwitch"
android:text="@string/settings_network_customratelimits_unlimited" />
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment