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:
7
SweetDreamsLib/res/values/sounds_lite.xml
Normal file
7
SweetDreamsLib/res/values/sounds_lite.xml
Normal 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>
|
||||
38
SweetDreamsLib/res/xml/settings_lite.xml
Normal file
38
SweetDreamsLib/res/xml/settings_lite.xml
Normal 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>
|
||||
Reference in New Issue
Block a user