Move playback save button to SettingsListFragment
Move the ability to save the current playback state into a dedicated preference in SettingsListFragment.
This commit is contained in:
@@ -85,6 +85,9 @@
|
||||
<string name="setting_behavior_rewind_threshold_desc">Progress at which a rewind should occur (seconds)</string>
|
||||
|
||||
<!-- Debug Namespace | Debug labels -->
|
||||
<string name="debug_title">Debug</string>
|
||||
<string name="debug_state_save">Save playback state</string>
|
||||
<string name="debug_state_save_desc">Force save the current playback state</string>
|
||||
<string name="debug_state_saved">State saved</string>
|
||||
|
||||
<!-- Error Namespace | Error Labels -->
|
||||
|
||||
@@ -124,8 +124,22 @@
|
||||
app:min="@integer/rewind_threshold_min"
|
||||
app:summary="@string/setting_behavior_rewind_threshold_desc"
|
||||
app:showSeekBarValue="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:dependency="KEY_PREV_REWIND" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/debug_title"
|
||||
app:isPreferenceVisible="false"
|
||||
app:layout="@layout/item_header">
|
||||
|
||||
<Preference
|
||||
app:key="KEY_SAVE_STATE"
|
||||
android:title="@string/debug_state_save"
|
||||
app:summary="@string/debug_state_save_desc"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
@@ -18,6 +18,7 @@
|
||||
android:title="@string/setting_accent"
|
||||
android:icon="@drawable/ic_accent"
|
||||
app:summary="@string/setting_accent_unknown" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
@@ -69,6 +70,7 @@
|
||||
app:defaultValue="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:summary="@string/setting_playback_plug_mgt_desc" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
@@ -93,6 +95,13 @@
|
||||
app:iconSpaceReserved="false"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:key="KEY_KEEP_SHUFFLE"
|
||||
android:title="@string/setting_behavior_keep_shuffle"
|
||||
app:summary="@string/setting_behavior_keep_shuffle_desc"
|
||||
app:defaultValue="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SwitchPreference
|
||||
app:key="KEY_PREV_REWIND"
|
||||
android:title="@string/setting_behavior_rewind_prev"
|
||||
@@ -104,12 +113,25 @@
|
||||
app:key="KEY_REWIND_THRESHOLD"
|
||||
android:title="@string/setting_behavior_rewind_threshold"
|
||||
android:defaultValue="@integer/rewind_threshold_default"
|
||||
app:summary="@string/setting_behavior_rewind_threshold_desc"
|
||||
app:showSeekBarValue="true"
|
||||
android:max="@integer/rewind_threshold_max"
|
||||
app:min="@integer/rewind_threshold_min"
|
||||
app:summary="@string/setting_behavior_rewind_threshold_desc"
|
||||
app:showSeekBarValue="true"
|
||||
app:iconSpaceReserved="false"
|
||||
app:dependency="KEY_PREV_REWIND" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/debug_title"
|
||||
app:isPreferenceVisible="false"
|
||||
app:layout="@layout/item_header">
|
||||
|
||||
<Preference
|
||||
app:key="KEY_SAVE_STATE"
|
||||
android:title="@string/debug_state_save"
|
||||
app:summary="@string/debug_state_save_desc"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user