summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-03-14 11:26:19 +0100
committerlado <herrlado@gmail.com>2013-03-14 11:26:19 +0100
commit2a307c36a2d762856423c8186b33495040a07683 (patch)
tree8d0b45dff89602a7e4b6ae7d418c03a976decafa /vdrmanager
parente81fa6d1fc905c67d2a68b33f11dc1bbe1344a24 (diff)
downloadvdr-manager-2a307c36a2d762856423c8186b33495040a07683.tar.gz
vdr-manager-2a307c36a2d762856423c8186b33495040a07683.tar.bz2
timerStopTime
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java
index dd66e8c..2b30fc6 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java
@@ -93,7 +93,15 @@ public class Utils {
}
public static int getProgress(Event e) {
- return getProgress(e.getStart(), e.getStop());
+ if(e instanceof Recording == false){
+ return getProgress(e.getStart(), e.getStop());
+ }
+ Recording r = ((Recording)e);
+ if(r.getTimerStopTime() == null){
+ return getProgress(e.getStart(), e.getStop());
+ }
+ return getProgress(r.getStart(), r.getTimerStopTime());
+
}
/**
@@ -114,7 +122,7 @@ public class Utils {
public static boolean isLive(Event event) {
long now = System.currentTimeMillis();
return now >= event.getStart().getTime()
- && now < event.getStop().getTime();
+ && now <= event.getStop().getTime();
}
private static String trimToEmpty(String str) {