Skip to content

Commit

Permalink
Merge pull request #3659 from Navid200/Navid_2024_09_08
Browse files Browse the repository at this point in the history
Dex Share cleanup
  • Loading branch information
jamorham authored Sep 27, 2024
2 parents 655e802 + f4907b1 commit f54aa6c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1912,13 +1912,13 @@ public void onClick(DialogInterface dialog, int which) {
}
}


if (!engineering_mode) {
try {
((PreferenceScreen) findPreference("dexcom_server_upload_screen")).removePreference(findPreference("share_test_key"));
} catch (Exception e) {
//
}
// Hide receiver serial number settings
// Hiding a setting without deleting it makes it invisible to the user while it can still define the setting value.
try {
((PreferenceScreen) findPreference("dexcom_server_upload_screen")).removePreference(findPreference("share_test_key"));
((PreferenceScreen) findPreference("dexcom_server_upload_screen")).removePreference(findPreference("share_key"));
} catch (Exception e) {
//
}

//if (engineering_mode) {
Expand Down
18 changes: 9 additions & 9 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@
<string name="use_excessive_wakelocks">Use Excessive Wakelocks</string>
<string name="speak_readings">Speak Readings</string>
<string name="extra_status_line">Extra Status Line</string>
<string name="dexcom_share_server_upload">Dexcom Share Server Upload</string>
<string name="upload_data_to_dex_servers">Upload data to Dexcoms Servers so you can use your data with Dexcoms apps</string>
<string name="dexcom_share_server_upload">Dex Share</string>
<string name="upload_data_to_dex_servers">Upload data to Dex Share Servers</string>
<string name="manage_followers">Manage Followers</string>
<string name="manage_existing_followers">Manage your existing followers and invite new ones.</string>
<string name="invite_follower">Invite a Follower</string>
Expand Down Expand Up @@ -759,15 +759,15 @@
<string name="influxdb_database_name">InfluxDB database name</string>
<string name="user">User</string>
<string name="password">Password</string>
<string name="upload_to_dexcom">Enable this to upload to Dexcom\'s servers</string>
<string name="upload_to_dexcom_share">Upload BG values as Dexcom Share</string>
<string name="upload_to_dexcom">Enable this to upload to Dex Share servers</string>
<string name="upload_to_dexcom_share">Upload BG values to Dex Share</string>
<string name="accounts_outside_usa">Disabled = Your account and follower apps are from outside the USA</string>
<string name="accounts_inside_usa">Enabled = Your account and follower apps are from the USA</string>
<string name="usa_based_account">Dexcom USA based account</string>
<string name="dexcom_login">Your login for Dexcom\'s Website</string>
<string name="dexcom_user">Dexcom Account Login</string>
<string name="dexcom_login_password">Your password for Dexcom\'s Website</string>
<string name="dexcom_password">Dexcom Account Password</string>
<string name="usa_based_account">Dex USA based account</string>
<string name="dexcom_login">Your login for Dex share</string>
<string name="dexcom_user">Dex Account Login</string>
<string name="dexcom_login_password">Your password for Dex share</string>
<string name="dexcom_password">Dex Account Password</string>
<string name="dexcom_receiver_serial">10-Character Dexcom Receiver serial number</string>
<string name="dexcom_test_mode_serial">10-Character Test Mode serial number</string>
<string name="glucose_meters">Glucose Meters</string>
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/xml/pref_data_sync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,6 @@
android:key="share_test_key"
android:shouldDisableView="true"
android:title="@string/dexcom_test_mode_serial" />
<Preference
android:dependency="share_upload"
android:summary="@string/manage_existing_followers"
android:key="manage_dexcom_share_followers"
android:title="@string/manage_followers">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.eveningoutpost.dexdrip.FollowerManagementActivity"
android:targetPackage="@string/local_target_package" />
</Preference>
</PreferenceScreen>
<PreferenceScreen
android:key="tidepool_upload_screen"
Expand Down

0 comments on commit f54aa6c

Please sign in to comment.