Skip to content

Commit d5b861c

Browse files
authored
Merge pull request #4231 from Navid200/Navid_2025_10_26
Identifying xDrip toast
2 parents 0a649c2 + 45fdd44 commit d5b861c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ public static synchronized Treatments create(final double carbs, final double in
252252
final long future_seconds = (timestamp - JoH.tsl()) / 1000;
253253
// if treatment more than 1 hour in the future
254254
if (future_seconds > (60 * 60)) {
255-
JoH.static_toast_long("Refusing to create a treatement more than 1 hours in the future!");
255+
JoH.static_toast_long(xdrip.gs(R.string.toast_treatment_more_than_one_hour_in_the_future));
256+
UserError.Log.e(TAG, "Refusing to create a treatment more than 1 hour in the future!");
256257
return null;
257258
}
258259
// if treatment more than 3 minutes in the future

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,7 @@
16411641
<string name="calibrate">Calibrate</string>
16421642
<string name="confirm_delete">Confirm Delete</string>
16431643
<string name="are_you_sure_you_want_to_delete_this_treatment">Are you sure you want to delete this Treatment?</string>
1644+
<string name="toast_treatment_more_than_one_hour_in_the_future">xDrip cannot accept treatments more than one hour in the future.</string>
16441645
<string name="no_data_received_from_master_yet">No data received from master yet</string>
16451646
<string name="last_from_master_">Last from master: </string>
16461647
<string name="prepare_to_test">Prepare to test!</string>

0 commit comments

Comments
 (0)