Skip to content

Commit

Permalink
Merge branch 'NightscoutFoundation:master' into Navid_2024_12_20
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid200 authored Jan 5, 2025
2 parents a37b943 + 8ed51e7 commit 4d088a4
Show file tree
Hide file tree
Showing 28 changed files with 710 additions and 502 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void onClick(View v) {

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());

prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
// prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();

Intent intent = new Intent(getApplicationContext(), Home.class);
startActivity(intent);
Expand All @@ -129,7 +129,7 @@ public void onClick(View v) {

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());

prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
// prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();

Intent intent = new Intent(getApplicationContext(), Home.class);
startActivity(intent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ private void startSensorAndSetIntent() {
startSensorForTime(startTime);

Intent intent;
if (Pref.getBoolean("store_sensor_location", false) && Experience.gotData()) {
intent = new Intent(getApplicationContext(), NewSensorLocation.class);
} else {
intent = new Intent(getApplicationContext(), Home.class);
}
intent = new Intent(getApplicationContext(), Home.class);

startActivity(intent);
finish();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ private static void legacySettingsFix() {
Pref.setBoolean("run_ble_scan_constantly", false);
Pref.setBoolean("run_G5_ble_tasks_on_uithread", false);
Pref.setBoolean("ob1_initiate_bonding_flag", true);
Pref.setBoolean("store_sensor_location", false);
}
private static void legacySettingsMoveLanguageFromNoToNb() {
// Check if the user's language preference is set to "no"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public static void schedule() {
new JobRequest.Builder(TAG)
.setPeriodic(Constants.DAY_IN_MS, Constants.HOUR_IN_MS * 12)
.setRequiresDeviceIdle(true)
.setRequiresCharging(true)
// .setRequiresCharging(true) // If the battery level is not low, we should run even if it is not being charged.
.setRequiresBatteryNotLow(true)
.setRequiredNetworkType(JobRequest.NetworkType.UNMETERED)
.setUpdateCurrent(true)
.build()
Expand Down
22 changes: 22 additions & 0 deletions app/src/main/res/values-bg/strings-bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<string name="pref_title_api_enabled">Включен</string>
<string name="pref_summary_api_enabled">REST API е стандартният начин за връзка с Nightscout</string>
<string name="pref_title_api_url">Базов URL адрес</string>
<string name="pref_summary_api_url">Формат: https://password@hostname/api/v1/</string>
<string name="pref_dialog_api_url">Въведете базовия API URL адрес</string>
<string name="pref_message_api_url">Това е само базовия URL, ъплоудера автоматично, ще прикачи /entries за POST. API_SECRET-а трябва да съвпадне с yourpassphrase в настройките.</string>
<string name="pref_default_api_url">https://yourpassphrase@{ИМЕ-САЙТ}.azurewebsites.net/api/v1/</string>
Expand Down Expand Up @@ -225,7 +226,12 @@
<string name="persistent_high_alert">Известие за продължително висока КЗ</string>
<string name="persistent_high_alert_enable">Включи</string>
<string name="title_persistent_high_threshold">Праг</string>
<string name="the_value_must_be_between_min_and_max">Стойността трябва да е между %1$s и %2$s</string>
<string name="forecasted_low_alert">Известие за предвиждана Ниска КЗ</string>
<string name="setting_pref_to_max">Сложи на макс.</string>
<string name="pref_was_greater_than_max">%1$s е сложена на стойност по-голяма от максималално разрешената. Трябва да бъде променена на максималната.</string>
<string name="setting_pref_to_min">Сложи на мин.</string>
<string name="pref_was_less_than_min">%1$s е сложена на стойност по-малка от минимално разрешената. Трябва да бъде променена на минималната.</string>
<string name="extrapolate_data_to_try_to_predict_lows">Екстраполиране на данните в опит да се предвиди ниска КЗ</string>
<string name="alarm_at_forecasted_low_mins">Аларма при предвиждане на Ниски стойности(Кз)</string>
<string name="other_xdrip_plus_alerts">Други xDrip+ известия</string>
Expand Down Expand Up @@ -742,6 +748,8 @@
<string name="glucose_meters">Глюкомери</string>
<string name="glucose_meter_options">Опции за безжични глюкомери</string>
<string name="auto_connect_to_meter">Автоматично свързване и извличане на данни от съвместим със стандарта глюкомер като Contour Next One</string>
<string name="summary_use_nfc_meter">Сваляне на записи за глюкозата от NFC глюкомера, когато xDrip е отворен</string>
<string name="title_use_nfc_meter">Използване на NFC глюкомер</string>
<string name="use_bluetooth_meter">Да използвам ли режим Bluetooth</string>
<string name="scan_for_bluetooth_meter">Сканиране за Bluetooth измервател</string>
<string name="meter_connect_sound">Активирайте това, за възпроизвеждане на звукови ефекти, когато глюкомерът се свързва, прекъсва връзката или синхронизира данни</string>
Expand Down Expand Up @@ -1199,6 +1207,12 @@
<string name="title_tidepool_window_latency">Минимална възраст на данните</string>
<string name="summary_tidepool_dev_servers">Ако е разрешено, качванията ще отиват на https://int-app.tidepool.org вместо на обичайния https://app.tidepool.org/</string>
<string name="title_tidepool_dev_servers">Използвай тестовите сървъри</string>
<string name="summary_tidepool_upload_when_chargeonly">Качване на данни само при зареждане</string>
<string name="title_tidepool_upload_when_chargeonly">Само при зареждане</string>
<string name="summary_tidepool_upload_only_wifi">Качване на данни, само когато е свързан към мрежа без измерване като Wifi</string>
<string name="title_tidepool_upload_only_wifi">Само на Wifi</string>
<string name="summary_tidepool_upload_no_treatment">Качване само на CGM данни, за да се избегне на дублиране с ръчно качване от помпа</string>
<string name="title_tidepool_upload_no_treatment">Няма да се качват лечения</string>
<string name="title_tidepool">Сървър Tidepool</string>
<string name="show_help">Покажи помощно меню</string>
<string name="load_save_settings_on_sdcard">Зареждане / запазване на настройките</string>
Expand Down Expand Up @@ -1272,6 +1286,8 @@
<string name="summary_lefun_send_alarms">Изпращайте известия до групата за аларми за глюкоза</string>
<string name="title_lefun_send_alarms">Изпращане на аларми</string>
<string name="title_lefun_option_shake_snoozes">Разклатете за отлагане</string>
<string name="summary_lefun_send_calls">Изпращане на известия до групата</string>
<string name="title_lefun_send_calls">Изпращане на обаждания</string>
<string name="title_lefun_screens_features">Lefun Екрани / Характеристики</string>
<string name="title_features">Характеристики</string>
<string name="title_lefun_feature_lift_to_wak">Вдигане за събуждане</string>
Expand All @@ -1295,6 +1311,7 @@
<string name="title_nsfollow_url">Nightscout URL за следване</string>
<string name="summary_nsfollow_download_treatments">Също така изтеглете лечения от Nightscout като последовател</string>
<string name="title_nsfollow_download_treatments">Изтегляне на лечения</string>
<string name="title_nsfollow_lag">Nightscout забавяне на следването</string>
<!-- Maybe we can use them later?
<string name="title_clfollow_user">CareLink Username</string>
<string name="summary_clfollow_user">CareLink login username</string>
Expand Down Expand Up @@ -1338,6 +1355,8 @@
<string name="title_ob1_g5_fallback_to_xdrip">Обратно към xDrip</string>
<string name="summary_ob1_minimize_scanning">Използвайте евристика, за да минимизирате Bluetooth сканирането + да пестите енергия</string>
<string name="title_ob1_minimize_scanning">Минимизиране на сканирането</string>
<string name="summary_ob1_avoid_scanning">Избягване на сканирането, доколкото е възможно (намалява използването на батерията)</string>
<string name="title_ob1_avoid_scanning">Избягване на сканирането</string>
<string name="summary_using_g6">Използвам сензор G6 или Dexcom 1</string>
<string name="title_using_g6">Поддръжка на G6/Dex1</string>
<string name="summary_ob1_g5_allow_resetbond">Колекционерът на OB1 може да прекрати връзката, ако смята, че криптирането е неуспешно. Ако имате проблеми с раздвояването, деактивирайте тази опция. Ако след това напълно загубите връзка, уверете се, че това е активирано.</string>
Expand Down Expand Up @@ -1491,6 +1510,7 @@
<string name="progress">прогрес</string>
<string name="bluetooth_device">Bluetooth Устройство:</string>
<string name="transmitter_battery_status">Батерия трансмитер: </string>
<string name="database_size">Размер на база данни: </string>
<string name="top">Най-горен</string>
<string name="connect_device_usb_otg">Моля, свържете вашето устройство чрез USB OTG кабел.</string>
<string name="connection_status">Състояние на връзката:</string>
Expand Down Expand Up @@ -1851,6 +1871,8 @@
<string name="audio_focus_lower_volume_of_other_apps">Намали силата на звука на другите приложения</string>
<string name="audio_focus_pause_other_apps_playing_audio">Паузирай другите приложения, които възпроизвеждат аудио</string>
<string name="audio_focus_pause_all_other_sounds">Паузиране на всички останали звуци</string>
<string name="wake_up_screen">Събуждане на екрана</string>
<string name="wake_up_screen_summary">Събуждане на екрана по време на предупреждения. Може да отключи утройства, на които функцията заключване на екрана не е активирана.</string>
<string name="use_camera_light">Използвай светкавицата на камерата</string>
<string name="use_camera_light_summary">Премигване на светкавицата на камерата по време на аларми, когато е свързано зарядното устройство</string>
<string name="g7_should_start_automatically">G7 би трябвало да стартира автоматично</string>
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/values-cs/strings-cs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<string name="pref_title_api_enabled">Povoleno</string>
<string name="pref_summary_api_enabled">REST API je standardní způsob, jak se připojit k Nightscoutu</string>
<string name="pref_title_api_url">Základní URL</string>
<string name="pref_summary_api_url">Formát: https://password@hostname/api/v1/</string>
<string name="pref_dialog_api_url">Základní URL serveru</string>
<string name="pref_message_api_url">Toto je pouze základní adresa. Uploader automaticky přidá na konec / pro nahrání dat. API_SECRET a na serveru musí odpovídat vasapisecret nastavení.</string>
<string name="pref_default_api_url">https://{vasapisecert}@{vaseadresa}.azurewebsites.net/api/v1/</string>
Expand Down Expand Up @@ -750,6 +751,8 @@
<string name="glucose_meters">Glukometry</string>
<string name="glucose_meter_options">Volby pro bezdrátové glukometry</string>
<string name="auto_connect_to_meter">Automaticky připojovat a načítat data z glukometru jako je Contour Next One</string>
<string name="summary_use_nfc_meter">Stáhnout záznamy glykémie z NFC glukometru, pokud je aplikace xDrip+ otevřena</string>
<string name="title_use_nfc_meter">Používat NFC glukometr</string>
<string name="use_bluetooth_meter">Používat Bluetooth glukometry</string>
<string name="scan_for_bluetooth_meter">Vyhledat Bluetooth glukometr</string>
<string name="meter_connect_sound">Povolit tento zvuk při připojení, odpojení a sychronizaci dat</string>
Expand Down Expand Up @@ -1211,6 +1214,12 @@
<string name="title_tidepool_window_latency">Nahrávat data po (minutách)</string>
<string name="summary_tidepool_dev_servers">Pokud povoleno, data budou nahrávána na https://int-app.tidepool.org místo na https://app.tidepool.org/ (nedoporučeno)</string>
<string name="title_tidepool_dev_servers">Používat integrační (testovací) servery</string>
<string name="summary_tidepool_upload_when_chargeonly">Nahrát data pouze při nabíjení</string>
<string name="title_tidepool_upload_when_chargeonly">Pouze při nabíjení</string>
<string name="summary_tidepool_upload_only_wifi">Nahrát data pouze při připojení k neomezené datové síti/Wifi</string>
<string name="title_tidepool_upload_only_wifi">Pouze při připojení k Wifi</string>
<string name="summary_tidepool_upload_no_treatment">Nahrát pouze data z telefonu (CGM), aby se zabránilo duplicitám s manuálním nahrávání z pumpy</string>
<string name="title_tidepool_upload_no_treatment">Nenahrávat ošetření</string>
<string name="title_tidepool">Tidepool</string>
<string name="show_help">Zobrazit nápovědu</string>
<string name="load_save_settings_on_sdcard">Načíst / uložit nastavení</string>
Expand Down Expand Up @@ -1283,6 +1292,8 @@
<string name="summary_lefun_send_alarms">Zobrazit oznámení výstrah glykémie</string>
<string name="title_lefun_send_alarms">Zobrazit výstrahy</string>
<string name="title_lefun_option_shake_snoozes">Zatřesením potvrdit</string>
<string name="summary_lefun_send_calls">Zobrazit oznámení o příchozím hovoru na náramku</string>
<string name="title_lefun_send_calls">Zobrazit příchozí hovory</string>
<string name="title_lefun_screens_features">Lefun displej / funkce</string>
<string name="title_features">Funkce</string>
<string name="title_lefun_feature_lift_to_wak">Zvednutím probudit</string>
Expand Down Expand Up @@ -1350,6 +1361,8 @@
<string name="title_ob1_g5_fallback_to_xdrip">Návrat k algoritmu xDrip+</string>
<string name="summary_ob1_minimize_scanning">Použít heuristiku pro minimalizaci Bluetooth vyhledávání a úspory baterie</string>
<string name="title_ob1_minimize_scanning">Minimalizovat vyhledávání</string>
<string name="summary_ob1_avoid_scanning">Vyhnout se skenování v maximální možné míře (pro snížení spotřeby baterie)</string>
<string name="title_ob1_avoid_scanning">Vyhnout se skenování</string>
<string name="summary_using_g6">Používám G6 nebo Dexcom One senzor</string>
<string name="title_using_g6">Podpora G6/Dexcom One</string>
<string name="summary_ob1_g5_allow_resetbond">OB1 kolektor se může odpojit, pokud zjistí, že šifrování selhalo. Vypněte tuto možnost, pokud máte problémy s odpojováním. Při úplném odpojení povolte tuto možnost.</string>
Expand Down Expand Up @@ -1865,6 +1878,8 @@ môže spôsobovať pády alebo zamrznutia telefónu! Klepnutím otestujte predt
<string name="audio_focus_lower_volume_of_other_apps">Snížit hlasitost zvuků ostatních aplikací</string>
<string name="audio_focus_pause_other_apps_playing_audio">Pozastavit ostatní aplikace přehrávající zvuky</string>
<string name="audio_focus_pause_all_other_sounds">Pozastavit všechny ostatní zvuky</string>
<string name="wake_up_screen">Probuzení obrazovky</string>
<string name="wake_up_screen_summary">Probudit obrazovku během výstrahy. Toto může odemknout zařízení, která nemají zapnutý zámek obrazovky.</string>
<string name="use_camera_light">Používat světlo fotoaparátu</string>
<string name="use_camera_light_summary">Blikat světlem fotoaparátu během trvání výstrahy, pokud je telefon připojen k nabíječce</string>
<string name="g7_should_start_automatically">Senzor G7 by se měl spustit automaticky</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-de/strings-de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
<string name="use_excessive_wakelocks">Übermäßige Wakelocks nutzen</string>
<string name="speak_readings">Werte vorlesen</string>
<string name="extra_status_line">Zusätzliche Statuszeile</string>
<string name="dexcom_share_server_upload">Dexcom Share Server Upload</string>
<string name="dexcom_share_server_upload">Dex Share</string>
<string name="upload_data_to_dex_servers">Daten zum Dexcom-Server hochladen, damit Du Deine Daten mit den offiziellen Dexcom-Apps nutzen kannst</string>
<string name="manage_followers">Follower verwalten</string>
<string name="manage_existing_followers">Follower verwalten und neue hinzufügen.</string>
Expand Down Expand Up @@ -1271,6 +1271,7 @@
<string name="summary_lefun_send_alarms">Sende Benachrichtigungen an das Band für Glukosealarme</string>
<string name="title_lefun_send_alarms">Alarme senden</string>
<string name="title_lefun_option_shake_snoozes">Zum Schlummern schütteln</string>
<string name="title_lefun_send_calls">Sende Anrufe</string>
<string name="title_lefun_screens_features">Lefun Bildschirme / Funktionen</string>
<string name="title_features">Funktionen</string>
<string name="title_lefun_feature_lift_to_wak">Zum Aktivieren anheben</string>
Expand Down
Loading

0 comments on commit 4d088a4

Please sign in to comment.