Skip to content

Commit

Permalink
Merge pull request #3818 from Navid200/Navid_2024_12_16b
Browse files Browse the repository at this point in the history
Hide Nightscout base URL
  • Loading branch information
jamorham authored Dec 17, 2024
2 parents eb6cd64 + e37e984 commit f86a17d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,6 @@ public void onCreate(Bundle savedInstanceState) {
bindPreferenceSummaryToValue(findPreference("cloud_storage_mongodb_uri"));
bindPreferenceSummaryToValue(findPreference("cloud_storage_mongodb_collection"));
bindPreferenceSummaryToValue(findPreference("cloud_storage_mongodb_device_status_collection"));
bindPreferenceSummaryToValue(findPreference("cloud_storage_api_base"));

addPreferencesFromResource(R.xml.pref_advanced_settings);
addPreferencesFromResource(R.xml.xdrip_plus_prefs);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<string name="pref_title_api_enabled">Enabled</string>
<string name="pref_summary_api_enabled">The REST API is the standard way to connect to Nightscout</string>
<string name="pref_title_api_url">Base URL</string>
<string name="pref_summary_api_url">Format: https://password@hostname/api/v1/</string>
<string name="pref_dialog_api_url">Enter Base API URL</string>
<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>
<string name="pref_default_api_url">https://yourpassphrase@{YOUR-SITE}.azurewebsites.net/api/v1/</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/xml/pref_data_sync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
android:dialogTitle="@string/pref_dialog_api_url"
android:inputType="textUri"
android:key="cloud_storage_api_base"
android:title="@string/pref_title_api_url" />
android:title="@string/pref_title_api_url"
android:summary="@string/pref_summary_api_url"/>

<PreferenceScreen
android:key="download_treatments_screen"
Expand Down

0 comments on commit f86a17d

Please sign in to comment.