Use switch for all preferences and enable auto-wrap

This commit is contained in:
kyori19 2020-05-04 17:47:43 +09:00
parent 8be0989a73
commit 1f05df670b
1 changed files with 12 additions and 7 deletions

View File

@ -98,19 +98,22 @@
android:defaultValue="false" android:defaultValue="false"
android:key="limitedBandwidthActive" android:key="limitedBandwidthActive"
android:title="@string/pref_title_limited_bandwidth_active" android:title="@string/pref_title_limited_bandwidth_active"
android:disableDependentsState="false" /> android:disableDependentsState="false"
app:singleLineTitle="false" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:defaultValue="true" android:defaultValue="true"
android:key="limitedBandwidthOnlyMobileNetwork" android:key="limitedBandwidthOnlyMobileNetwork"
android:title="@string/pref_title_limited_bandwidth_mobile" android:title="@string/pref_title_limited_bandwidth_mobile"
android:dependency="limitedBandwidthActive" /> android:dependency="limitedBandwidthActive"
app:singleLineTitle="false" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:defaultValue="true" android:defaultValue="true"
android:key="limitedBandwidthTimelineRoading" android:key="limitedBandwidthTimelineRoading"
android:title="@string/pref_title_limited_bandwidth_timeline" android:title="@string/pref_title_limited_bandwidth_timeline"
android:dependency="limitedBandwidthActive" /> android:dependency="limitedBandwidthActive"
app:singleLineTitle="false" />
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/pref_title_browser_settings"> <PreferenceCategory android:title="@string/pref_title_browser_settings">
@ -139,15 +142,17 @@
<PreferenceCategory android:title="@string/pref_title_experimental"> <PreferenceCategory android:title="@string/pref_title_experimental">
<CheckBoxPreference <SwitchPreferenceCompat
android:defaultValue="false" android:defaultValue="false"
android:key="viewPagerOffScreenLimit" android:key="viewPagerOffScreenLimit"
android:title="@string/pref_title_experimental_viewpager_offscreen" /> android:title="@string/pref_title_experimental_viewpager_offscreen"
app:singleLineTitle="false" />
<CheckBoxPreference <SwitchPreferenceCompat
android:defaultValue="false" android:defaultValue="false"
android:key="useHTLStream" android:key="useHTLStream"
android:title="@string/pref_title_experimental_htl_streaming" /> android:title="@string/pref_title_experimental_htl_streaming"
app:singleLineTitle="false" />
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory <PreferenceCategory