- added Notification when Time/TZ change is made
- changed code to display dialog
This commit is contained in:
parent
b80fc3851c
commit
3ceb5f46d8
|
@ -79,6 +79,7 @@ public class Notification {
|
|||
public static final int OVER_24H_TIME_CHANGE_REQUESTED = 54;
|
||||
public static final int INVALID_VERSION = 55;
|
||||
public static final int OMNIPOD_PUMP_ALARM = 56;
|
||||
public static final int TIME_OR_TIMEZONE_CHANGE = 57;
|
||||
|
||||
|
||||
public int id;
|
||||
|
|
|
@ -118,7 +118,7 @@ class OmnipodFragment : Fragment() {
|
|||
} else {
|
||||
val readPulseLog = AapsOmnipodManager.getInstance().readPulseLog()
|
||||
|
||||
OKDialog.showConfirmation(null,
|
||||
OKDialog.show(MainApp.instance().applicationContext, MainApp.gs(R.string.action),
|
||||
"Pulse Log:\n" + readPulseLog.toString(), null)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -387,6 +387,13 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
|
|||
if (omnipodUITask.wasCommandSuccessful()) {
|
||||
this.hasTimeDateOrTimeZoneChanged = false;
|
||||
timeChangeRetries = 0;
|
||||
|
||||
Notification notification = new Notification(
|
||||
Notification.TIME_OR_TIMEZONE_CHANGE,
|
||||
MainApp.gs(R.string.time_or_timezone_change),
|
||||
Notification.INFO, 60);
|
||||
RxBus.INSTANCE.send(new EventNewNotification(notification));
|
||||
|
||||
} else {
|
||||
timeChangeRetries++;
|
||||
|
||||
|
|
|
@ -1636,7 +1636,7 @@
|
|||
<string name="objectives_button_unstart">Clear started</string>
|
||||
<string name="timedetection">Time detection</string>
|
||||
<string name="doyouwantresetstart">Do you want reset objective start? You may lose your progress.</string>
|
||||
|
||||
<string name="time_or_timezone_change">Time and/or Timezone change on pump</string>
|
||||
|
||||
<!-- Omnipod -->
|
||||
|
||||
|
|
Loading…
Reference in a new issue