Merge branch 'switch-preference-android-4' into 'master'

Use Material style for SwitchPreference on Android 4

See merge request briar/briar!897
This commit is contained in:
akwizgran
2018-08-20 19:40:56 +00:00
2 changed files with 32 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Needed for SwitchPreference on Android 4 (API < 21)-->
<android.support.v7.widget.SwitchCompat
android:id="@android:id/switch_widget"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
tools:targetApi="n"/>