wear PoweRGbg fixes
|
@ -276,6 +276,7 @@ public class WatchUpdaterService extends WearableListenerService implements
|
|||
|
||||
NSProfile profile = MainApp.getConfigBuilder().getActiveProfile().getProfile();
|
||||
|
||||
if( profile == null) return;
|
||||
|
||||
long beginBasalSegmentTime = startTimeWindow;
|
||||
long runningTime = startTimeWindow;
|
||||
|
|
|
@ -52,4 +52,5 @@ dependencies {
|
|||
compile files('libs/hellocharts-library-1.5.5.jar')
|
||||
compile(name:'ustwo-clockwise-debug', ext:'aar')
|
||||
compile 'com.android.support:support-v4:23.0.1'
|
||||
compile 'me.denley.wearpreferenceactivity:wearpreferenceactivity:0.5.0'
|
||||
}
|
||||
|
|
|
@ -5,8 +5,9 @@ import android.os.Bundle;
|
|||
import android.preference.PreferenceActivity;
|
||||
|
||||
import info.nightscout.androidaps.R;
|
||||
import preference.WearPreferenceActivity;
|
||||
|
||||
public class NWPreferences extends PreferenceActivity {
|
||||
public class NWPreferences extends WearPreferenceActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
|
BIN
wear/src/main/res/drawable-hdpi/settings_off.png
Normal file
After Width: | Height: | Size: 851 B |
BIN
wear/src/main/res/drawable-hdpi/settings_on.png
Normal file
After Width: | Height: | Size: 601 B |
BIN
wear/src/main/res/drawable-mdpi/settings_off.png
Normal file
After Width: | Height: | Size: 551 B |
BIN
wear/src/main/res/drawable-mdpi/settings_on.png
Normal file
After Width: | Height: | Size: 408 B |
BIN
wear/src/main/res/drawable-xhdpi/settings_off.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wear/src/main/res/drawable-xhdpi/settings_on.png
Normal file
After Width: | Height: | Size: 779 B |
BIN
wear/src/main/res/drawable-xxhdpi/settings_off.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
wear/src/main/res/drawable-xxhdpi/settings_on.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
|
@ -1,73 +1,99 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceCategory
|
||||
android:title="@string/app_settings"
|
||||
android:key="category"
|
||||
android:selectable="false">
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="showExternalStatus"
|
||||
android:title="Show Loop Status"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on" />
|
||||
|
||||
<CheckBoxPreference android:title="Show Loop Status"
|
||||
android:defaultValue="true"
|
||||
android:summary="Show Loop Staus (Temps and IOB)."
|
||||
android:key="showExternalStatus" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="highlight_basals"
|
||||
android:summary="Better visible basal rate and temp basals"
|
||||
android:title="Highlight Basals"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<ListPreference
|
||||
android:key="chart_timeframe"
|
||||
android:title="Chart Timeframe"
|
||||
android:summary="Chart Timeframe"
|
||||
android:entries="@array/chart_timeframe"
|
||||
android:entryValues="@array/chart_timeframe_values"
|
||||
android:defaultValue="3" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="showAvgDelta"
|
||||
android:summary="Show the avgDelta."
|
||||
android:title="Show AvgDelta"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<CheckBoxPreference android:title="Highlight Basals"
|
||||
android:defaultValue="false"
|
||||
android:summary="Better visible basal rate and temp basals"
|
||||
android:key="highlight_basals" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="dark"
|
||||
android:summary="Dark theme"
|
||||
android:title="Dark"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<CheckBoxPreference android:title="Show AvgDelta"
|
||||
android:defaultValue="true"
|
||||
android:summary="Show the avgDelta."
|
||||
android:key="showAvgDelta" />
|
||||
<ListPreference
|
||||
android:defaultValue="3"
|
||||
android:entries="@array/chart_timeframe"
|
||||
android:entryValues="@array/chart_timeframe_values"
|
||||
android:key="chart_timeframe"
|
||||
android:summary="Chart Timeframe"
|
||||
android:title="Chart Timeframe" />
|
||||
|
||||
<CheckBoxPreference android:title="Dark"
|
||||
android:defaultValue="true"
|
||||
android:summary="Dark theme"
|
||||
android:key="dark" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="showAgo"
|
||||
android:summary="Minutes since last reading. (Circle WF)"
|
||||
android:title="Show Ago"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<CheckBoxPreference android:title="Show Ago"
|
||||
android:defaultValue="true"
|
||||
android:summary="Minutes since last reading. (Circle WF)"
|
||||
android:key="showAgo" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="showDelta"
|
||||
android:summary="Show delta. (Circle WF)"
|
||||
android:title="Show Delta"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<CheckBoxPreference android:title="Show Delta"
|
||||
android:defaultValue="true"
|
||||
android:summary="Show delta. (Circle WF)"
|
||||
android:key="showDelta" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="showBG"
|
||||
android:summary="Show BG. (Circle WF)"
|
||||
android:title="Show BG"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<CheckBoxPreference android:title="Show BG"
|
||||
android:defaultValue="true"
|
||||
android:summary="Show BG. (Circle WF)"
|
||||
android:key="showBG" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="showBigNumbers"
|
||||
android:summary="Big numbers. (Circle WF)"
|
||||
android:title="Big Numbers"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
<CheckBoxPreference android:title="Show Big Numbers"
|
||||
android:defaultValue="false"
|
||||
android:summary="Big numbers. (Circle WF)"
|
||||
android:key="showBigNumbers" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="showRingHistory"
|
||||
android:summary="Graphical history. (Circle WF)"
|
||||
android:title="Ring History"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on" />
|
||||
|
||||
<CheckBoxPreference android:title="Show Ring History"
|
||||
android:defaultValue="false"
|
||||
android:summary="Graphical history. (Circle WF)"
|
||||
android:key="showRingHistory" />
|
||||
|
||||
<CheckBoxPreference android:title="Light Ring History"
|
||||
android:defaultValue="true"
|
||||
android:summary="Less eyecandy. (Circle WF)"
|
||||
android:key="softRingHistory" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="softRingHistory"
|
||||
android:summary="Less eyecandy. (Circle WF)"
|
||||
android:title="Light Ring History"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
|
||||
|
||||
<CheckBoxPreference android:title="Show Animations"
|
||||
android:defaultValue="true"
|
||||
android:summary="Animations. (Circle WF)"
|
||||
android:key="animation" />
|
||||
|
||||
</PreferenceCategory>
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="animation"
|
||||
android:summary="Animations. (Circle WF)"
|
||||
android:title="Animations"
|
||||
app:wear_iconOff="@drawable/settings_off"
|
||||
app:wear_iconOn="@drawable/settings_on"/>
|
||||
</PreferenceScreen>
|
||||
|
|
|
@ -43,6 +43,13 @@
|
|||
<sourceFolder url="file://$MODULE_DIR$/src/fullDebug/jni" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/fullDebug/rs" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/fullDebug/shaders" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/full/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/full/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testFullDebug/res" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testFullDebug/resources" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testFullDebug/assets" type="java-test-resource" />
|
||||
|
@ -51,13 +58,6 @@
|
|||
<sourceFolder url="file://$MODULE_DIR$/src/testFullDebug/jni" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testFullDebug/rs" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testFullDebug/shaders" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/androidTest/full/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/full/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/full/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/full/res" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/full/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/full/assets" type="java-resource" />
|
||||
|
@ -131,6 +131,7 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/7.3.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-wearable/7.3.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.support/wearable/1.4.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/me.denley.wearpreferenceactivity/wearpreferenceactivity/0.5.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/ustwo-clockwise-debug/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
|
||||
|
@ -151,6 +152,7 @@
|
|||
<orderEntry type="library" exported="" name="ustwo-clockwise-debug-" level="project" />
|
||||
<orderEntry type="library" exported="" name="hellocharts-library-1.5.5" level="project" />
|
||||
<orderEntry type="library" exported="" name="play-services-wearable-7.3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="wearpreferenceactivity-0.5.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="wearable-1.4.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-v4-23.0.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="play-services-base-7.3.0" level="project" />
|
||||
|
|