renamed all field variables to follow proper syntax created isFull a protected static field boolean to change certain things between full and lite i set the default run time to 30 minutes created sounds_lite.xml us be used with sweet dreams lite created settings_lite.xml to be used for settings for the lite version TimePickerPreference.java i changed the method for saving time to a method that only uses one preference key\ i set the default time to 30 minutes
38 lines
1.4 KiB
XML
38 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<PreferenceCategory
|
|
android:title="White Noise Options">
|
|
|
|
<ListPreference android:dialogTitle="Pick A Sound"
|
|
android:entryValues="@array/sounds_lite"
|
|
android:entries="@array/sounds_lite"
|
|
android:key="sounds"
|
|
android:title="Sounds"/>
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="Timer Options">
|
|
|
|
<CheckBoxPreference
|
|
android:title="Enable"
|
|
android:summary="Enable Timer"
|
|
android:defaultValue="false"
|
|
android:key="timer_enabled"
|
|
/>
|
|
|
|
<com.TwentyCodes.android.SweetDreamsLib.TimePickerPreference
|
|
android:title="Timer"
|
|
android:enabled="false"
|
|
android:key="timer_length"
|
|
/>
|
|
|
|
<CheckBoxPreference
|
|
android:title="Exit On Finish"
|
|
android:summary="Closes Application When Timer Finishes"
|
|
android:defaultValue="false"
|
|
android:key="timer_exit_on_finish"
|
|
android:dependency="timer_enabled"
|
|
/>
|
|
|
|
</PreferenceCategory>
|
|
</PreferenceScreen> |