Cherish: Live Volume Steps [2/2]
Change-Id: I1e4ced6a7b7c963419fe1656e25b76f596a61959 Signed-off-by: Jason Edson <jaysonedson@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -359,5 +359,15 @@
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Volume step options. -->
|
||||
<string-array name="volume_steps_entries" translatable="false">
|
||||
<item>60</item>
|
||||
<item>45</item>
|
||||
<item>30</item>
|
||||
<item>15</item>
|
||||
<item>7</item>
|
||||
<item>5</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -452,4 +452,16 @@
|
||||
<string name="screen_off_fod_title">Screen off FOD</string>
|
||||
<string name="screen_off_fod_summary">Keep FOD enabled when the screen is off</string>
|
||||
|
||||
<!-- Volume Steps Fragment -->
|
||||
<string name="volume_steps_fragment_title">Volume steps</string>
|
||||
<string name="volume_steps_summary">Customize volume steps</string>
|
||||
<string name="volume_steps_alarm_title">Volume steps: Alarm</string>
|
||||
<string name="volume_steps_dtmf_title">Volume steps: DTMF</string>
|
||||
<string name="volume_steps_music_title">Volume steps: Media</string>
|
||||
<string name="volume_steps_notification_title">Volume steps: Notification</string>
|
||||
<string name="volume_steps_ring_title">Volume steps: Ringer</string>
|
||||
<string name="volume_steps_system_title">Volume steps: System</string>
|
||||
<string name="volume_steps_voice_call_title">Volume steps: Voice Call</string>
|
||||
<string name="volume_steps_reset">Reset</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -33,6 +33,12 @@
|
||||
android:summary="@string/volume_rocker_wake_summary"
|
||||
android:title="@string/volume_rocker_wake_title"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<Preference
|
||||
android:key="vol_steps"
|
||||
android:title="@string/volume_steps_fragment_title"
|
||||
android:summary="@string/volume_steps_summary"
|
||||
android:fragment="com.cherish.settings.fragments.VolumeStepsFragment" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<ListPreference
|
||||
|
||||
62
res/xml/cherish_settings_volume_steps.xml
Normal file
62
res/xml/cherish_settings_volume_steps.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2015 The Pure Nexus Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/volume_steps_fragment_title">
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_alarm"
|
||||
android:title="@string/volume_steps_alarm_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_dtmf"
|
||||
android:title="@string/volume_steps_dtmf_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_music"
|
||||
android:title="@string/volume_steps_music_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_notification"
|
||||
android:title="@string/volume_steps_notification_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_ring"
|
||||
android:title="@string/volume_steps_ring_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_system"
|
||||
android:title="@string/volume_steps_system_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_voice_call"
|
||||
android:title="@string/volume_steps_voice_call_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user