Skip to content

Commit d829e21

Browse files
committed
2 parents c26fefe + 0cf8d8f commit d829e21

File tree

7 files changed

+32
-17
lines changed

7 files changed

+32
-17
lines changed

app/src/main/java/com/eveningoutpost/dexdrip/models/RollCall.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static List<StatusItem> megaStatus() {
296296
for (Map.Entry entry : indexed.entrySet()) {
297297
final RollCall rc = (RollCall) entry.getValue();
298298
// TODO refactor with stringbuilder
299-
lf.add(new StatusItem(rc.role + (desert_sync ? rc.getRemoteWifiIndicate(our_wifi_ssid) : "") + (engineering ? ("\n" + JoH.niceTimeSince(rc.last_seen) + " ago") : ""), rc.bestName() + (desert_sync ? rc.getRemoteIpStatus() : "") + (engineering && rc.batteryValid() ? ("\n" + rc.battery + "%") : "") + (engineering && rc.bridgeBatteryValid() ? (" " + rc.bridge_battery+"%") : "")));
299+
lf.add(new StatusItem(rc.role + (desert_sync ? rc.getRemoteWifiIndicate(our_wifi_ssid) : "") + (engineering ? ("\n" + JoH.niceTimeSince(rc.last_seen) + " ago") : ""), rc.bestName() + (desert_sync ? rc.getRemoteIpStatus() : "") + (rc.batteryValid() ? ("\n" + rc.battery + "%") : "") + (engineering && rc.bridgeBatteryValid() ? (" " + rc.bridge_battery+"%") : "")));
300300
}
301301

302302
Collections.sort(lf, new Comparator<StatusItem>() {

app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,6 @@ public void onCreate(Bundle savedInstanceState) {
11441144
bindPreferenceSummaryToValue(findPreference("cloud_storage_mongodb_uri"));
11451145
bindPreferenceSummaryToValue(findPreference("cloud_storage_mongodb_collection"));
11461146
bindPreferenceSummaryToValue(findPreference("cloud_storage_mongodb_device_status_collection"));
1147-
bindPreferenceSummaryToValue(findPreference("cloud_storage_api_base"));
11481147

11491148
addPreferencesFromResource(R.xml.pref_advanced_settings);
11501149
addPreferencesFromResource(R.xml.xdrip_plus_prefs);

app/src/main/res/values/strings.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<string name="pref_title_api_enabled">Enabled</string>
6767
<string name="pref_summary_api_enabled">The REST API is the standard way to connect to Nightscout</string>
6868
<string name="pref_title_api_url">Base URL</string>
69+
<string name="pref_summary_api_url">Format: https://password@hostname/api/v1/</string>
6970
<string name="pref_dialog_api_url">Enter Base API URL</string>
7071
<string name="pref_message_api_url">This only the base URL, the uploader will automatically append /entries for the POST. API_SECRET on the server should match yourpassphrase in this setting.</string>
7172
<string name="pref_default_api_url">https://yourpassphrase@{YOUR-SITE}.azurewebsites.net/api/v1/</string>
@@ -780,6 +781,8 @@
780781
<string name="glucose_meters">Glucose Meters</string>
781782
<string name="glucose_meter_options">Options for wireless glucose meters</string>
782783
<string name="auto_connect_to_meter">Automatically connect and retrieve data from a standard\'s compliant glucose meter like the Contour Next One</string>
784+
<string name="summary_use_nfc_meter">Download glucose records from NFC meter when xDrip is open</string>
785+
<string name="title_use_nfc_meter">Use NFC Meter</string>
783786
<string name="use_bluetooth_meter">Use Bluetooth Meter</string>
784787
<string name="scan_for_bluetooth_meter">Scan for Bluetooth Meter</string>
785788
<string name="meter_connect_sound">Enable this to play sound effects when the meter connects, disconnects or syncs data</string>
@@ -1248,6 +1251,12 @@
12481251
<string name="title_tidepool_window_latency">Data Age Mins</string>
12491252
<string name="summary_tidepool_dev_servers">If enabled, uploads will go to https://int-app.tidepool.org instead of the regular https://app.tidepool.org/</string>
12501253
<string name="title_tidepool_dev_servers">Use Integration (test) servers</string>
1254+
<string name="summary_tidepool_upload_when_chargeonly">Upload data only when charging</string>
1255+
<string name="title_tidepool_upload_when_chargeonly">Only when charging</string>
1256+
<string name="summary_tidepool_upload_only_wifi">Upload data only when connected to an unmetered network like Wifi</string>
1257+
<string name="title_tidepool_upload_only_wifi">Only on Wifi</string>
1258+
<string name="summary_tidepool_upload_no_treatment">Upload only CGM data to avoid duplicates with manual pump upload</string>
1259+
<string name="title_tidepool_upload_no_treatment">Don\'t upload treatments</string>
12511260
<string name="title_tidepool">Tidepool</string>
12521261
<string name="show_help">Show Help</string>
12531262
<string name="load_save_settings_on_sdcard">Load / Save Settings</string>
@@ -1330,6 +1339,8 @@
13301339
<string name="summary_lefun_send_alarms">Send notifications to the band for glucose alarms</string>
13311340
<string name="title_lefun_send_alarms">Send Alarms</string>
13321341
<string name="title_lefun_option_shake_snoozes">Shake to Snooze</string>
1342+
<string name="summary_lefun_send_calls">Send call notifications to the band</string>
1343+
<string name="title_lefun_send_calls">Send Calls</string>
13331344
<string name="title_lefun_screens_features">Lefun Screens / Features</string>
13341345
<string name="title_features">Features</string>
13351346
<string name="title_lefun_feature_lift_to_wak">Lift to Wake</string>
@@ -1397,6 +1408,8 @@
13971408
<string name="title_ob1_g5_fallback_to_xdrip">Fallback to xDrip</string>
13981409
<string name="summary_ob1_minimize_scanning">Use heuristics to minimize Bluetooth scanning + save power</string>
13991410
<string name="title_ob1_minimize_scanning">Minimize Scanning</string>
1411+
<string name="summary_ob1_avoid_scanning">Avoid scanning as much as possible (reduces battery usage further)</string>
1412+
<string name="title_ob1_avoid_scanning">Avoid Scanning</string>
14001413
<string name="summary_using_g6">I am using a G6, G7, Dexcom 1 or One+ Sensor</string>
14011414
<string name="title_using_g6">G6/G7/Dex1/One+ Support</string>
14021415
<string name="summary_ob1_g5_allow_resetbond">OB1 collector can unbond if it thinks the encryption has failed. If you get problems with it unpairing then disable this option. If you then totally lose connection, make sure this is enabled.</string>
@@ -1920,6 +1933,8 @@
19201933
<string name="audio_focus_lower_volume_of_other_apps">Lower volume of other apps</string>
19211934
<string name="audio_focus_pause_other_apps_playing_audio">Pause other apps playing audio</string>
19221935
<string name="audio_focus_pause_all_other_sounds">Pause all other sounds</string>
1936+
<string name="wake_up_screen">Wake Screen</string>
1937+
<string name="wake_up_screen_summary">Wake up screen during alerts. Might unlock devices that don\'t have screen lock enabled.</string>
19231938
<string name="use_camera_light">Use Camera Light</string>
19241939
<string name="use_camera_light_summary">Flash camera light during alerts when connected to a charger</string>
19251940
<string name="g7_should_start_automatically">G7 should start automatically</string>

app/src/main/res/xml/pref_advanced_settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@
523523
android:defaultValue="false"
524524
android:dependency="lefun_enabled"
525525
android:key="lefun_option_call_notifications"
526-
android:summary="Send call notifications to the band (Android 6+)"
527-
android:title="Send Calls" />
526+
android:summary="@string/summary_lefun_send_calls"
527+
android:title="@string/title_lefun_send_calls" />
528528

529529
<PreferenceScreen android:title="@string/title_lefun_screens_features"
530530
android:key="lefun_features">

app/src/main/res/xml/pref_data_source.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@
387387
android:dependency="ob1_minimize_scanning"
388388
android:enabled="true"
389389
android:key="ob1_avoid_scanning"
390-
android:summary="Avoid scanning as much as possible (reduces battery usage further)"
391-
android:title="Avoid Scanning" />
390+
android:summary="@string/summary_ob1_avoid_scanning"
391+
android:title="@string/title_ob1_avoid_scanning" />
392392
<CheckBoxPreference
393393
android:defaultValue="false"
394394
android:key="using_g6"

app/src/main/res/xml/pref_data_sync.xml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
android:dialogTitle="@string/pref_dialog_api_url"
5959
android:inputType="textUri"
6060
android:key="cloud_storage_api_base"
61-
android:title="@string/pref_title_api_url" />
61+
android:title="@string/pref_title_api_url"
62+
android:summary="@string/pref_summary_api_url"/>
6263

6364
<PreferenceScreen
6465
android:key="download_treatments_screen"
@@ -310,18 +311,18 @@
310311
<CheckBoxPreference
311312
android:defaultValue="false"
312313
android:key="tidepool_only_while_charging"
313-
android:summary="Upload data only when charging"
314-
android:title="Only when charging" />
314+
android:summary="@string/summary_tidepool_upload_when_chargeonly"
315+
android:title="@string/title_tidepool_upload_when_chargeonly" />
315316
<CheckBoxPreference
316317
android:defaultValue="false"
317318
android:key="tidepool_only_while_unmetered"
318-
android:summary="Upload data only when connected to an unmetered network like Wifi"
319-
android:title="Only on Wifi" />
319+
android:summary="@string/summary_tidepool_upload_only_wifi"
320+
android:title="@string/title_tidepool_upload_only_wifi" />
320321
<CheckBoxPreference
321322
android:defaultValue="false"
322323
android:key="tidepool_no_treatments"
323-
android:summary="Upload only CGM data to avoid duplicates with manual pump upload"
324-
android:title="Don't upload treatments" />
324+
android:summary="@string/summary_tidepool_upload_no_treatment"
325+
android:title="@string/title_tidepool_upload_no_treatment" />
325326
<CheckBoxPreference
326327
android:defaultValue="false"
327328
android:key="tidepool_new_auth"
@@ -374,10 +375,10 @@
374375
<SwitchPreference
375376
android:defaultValue="false"
376377
android:key="nfc_meter_enabled"
377-
android:summary="Download glucose records from NFC meter when xDrip is open"
378+
android:summary="@string/summary_use_nfc_meter"
378379
android:switchTextOff="@string/short_off_text_for_switches"
379380
android:switchTextOn="@string/short_on_text_for_switches"
380-
android:title="Use NFC Meter" />
381+
android:title="@string/title_use_nfc_meter" />
381382
<SwitchPreference
382383
android:defaultValue="false"
383384
android:key="bluetooth_meter_enabled"

app/src/main/res/xml/pref_notifications.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@
7474
<SwitchPreference
7575
android:defaultValue="false"
7676
android:key="wake_phone_during_alerts"
77-
android:summary="Wake up screen during alerts. Might unlock devices that don't have screen lock enabled."
77+
android:summary="@string/wake_up_screen_summary"
7878
android:switchTextOff="@string/short_off_text_for_switches"
7979
android:switchTextOn="@string/short_on_text_for_switches"
80-
android:title="Wake Screen" />
80+
android:title="@string/wake_up_screen" />
8181

8282
<SwitchPreference
8383
android:defaultValue="false"

0 commit comments

Comments
 (0)