summaryrefslogtreecommitdiff
path: root/vdrmanager/src
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager/src')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Timer.java6
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java4
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java4
3 files changed, 9 insertions, 5 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Timer.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Timer.java
index e0f8b49..7782dca 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Timer.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Timer.java
@@ -165,7 +165,11 @@ public class Timer extends Event implements Timerable {
line.append(channelNumber).append(":");
final Calendar cal = Calendar.getInstance();
- cal.setTime(start);
+ if(isVps() == true){
+ cal.setTimeInMillis(vps);
+ } else {
+ cal.setTime(start);
+ }
cal.setTimeZone(TimeZone.getTimeZone(Preferences.get().getCurrentVdr()
.getServerTimeZone()));
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java
index e639355..2675722 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java
@@ -618,12 +618,12 @@ public class EpgDetailsActivity extends ICSBaseActivity implements
R.drawable.timer_inactive_end,
R.drawable.timer_inactive);
} else if (state == TimerState.Inactive) {
- Utils.getTimerStateDrawable(match,
+ res = Utils.getTimerStateDrawable(match,
R.drawable.timer_active,
R.drawable.timer_active_begin,
R.drawable.timer_active_end,
R.drawable.timer_active_conflict);
- res = R.drawable.timer_active;
+
}
if (res != -1) {
setState(
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java
index c91b4b7..c6ce4a6 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java
@@ -130,11 +130,11 @@ public class TimerDetailsActivity extends Activity implements OnClickListener,
prevDate = tView.dateField.getText();
}
- DateFormatter formatter = new DateFormatter(new Date(original.getVPS()));
+ DateFormatter formatter = new DateFormatter(original.getStart());
String date = formatter.getDateString();
tView.startField.setEnabled(false);
tView.startField.setText(formatter.getTimeString());
- timer.setStart(new Date(timer.getVPS()));
+ timer.setStart(original.getStart());
DateFormatter stopF = new DateFormatter(original.getStop());