SweetDreamsFull.java

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
This commit is contained in:
2011-02-11 14:04:53 +00:00
parent f75dd9fc39
commit bb5957b7d8
5 changed files with 102 additions and 62 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="sounds_lite">
<item>Rainy River</item>
<item>Air Conditioner</item>
</string-array>
</resources>

View File

@@ -0,0 +1,38 @@
<?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>