Merge pull request #909 from TebbeUbben/dev
Don't create TBR record when pump has been paused
This commit is contained in:
commit
b81d2ec6da
|
@ -183,7 +183,7 @@ class HistoryIntentAdapter {
|
|||
}
|
||||
if (intent.hasExtra(HistoryBroadcast.EXTRA_OLD_STATUS_TIME)) {
|
||||
String oldStatus = intent.getStringExtra(HistoryBroadcast.EXTRA_OLD_STATUS);
|
||||
if (oldStatus.equals("STOPPED") ||oldStatus.equals("PAUSED")) {
|
||||
if (oldStatus.equals("STOPPED")) {
|
||||
Date oldStatusTime = getDateExtra(intent, HistoryBroadcast.EXTRA_OLD_STATUS_TIME);
|
||||
int duration = (int) ((newStatusTime.getTime() - oldStatusTime.getTime()) / 60000);
|
||||
|
||||
|
|
Loading…
Reference in a new issue