disable swap "visible" checkboxes by default, they get dynamically set

If users click these fast, then its easy to get caught in a loop fighting
the dynamic setting of them.
This commit is contained in:
Hans-Christoph Steiner 2018-04-11 14:35:37 +02:00
parent 57e4315e18
commit 3fca7c7153

View File

@ -58,7 +58,7 @@
<android.support.v7.widget.SwitchCompat <android.support.v7.widget.SwitchCompat
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
tools:checked="true" android:enabled="false"
android:id="@+id/switch_bluetooth" /> android:id="@+id/switch_bluetooth" />
</LinearLayout> </LinearLayout>
@ -114,7 +114,7 @@
<android.support.v7.widget.SwitchCompat <android.support.v7.widget.SwitchCompat
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
tools:checked="false" android:enabled="false"
android:id="@+id/switch_wifi" /> android:id="@+id/switch_wifi" />
</LinearLayout> </LinearLayout>