summaryrefslogtreecommitdiff
path: root/vdrmanager/src
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2014-02-10 21:21:12 +0100
committerlado <herrlado@gmail.com>2014-02-10 21:21:12 +0100
commit82898e69214fb416bb8df75f7c50d6cf4efc6baa (patch)
tree8a8054ae9c962b508b7cb44e789bb0ab70398819 /vdrmanager/src
parentebaa0bc5d7c1bdf403ef8a51cf9a34fe6537f48b (diff)
downloadvdr-manager-82898e69214fb416bb8df75f7c50d6cf4efc6baa.tar.gz
vdr-manager-82898e69214fb416bb8df75f7c50d6cf4efc6baa.tar.bz2
http://projects.vdr-developer.org/issues/1689
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());