diff options
author | lado <herrlado@gmail.com> | 2014-02-10 21:21:12 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2014-02-10 21:21:12 +0100 |
commit | 82898e69214fb416bb8df75f7c50d6cf4efc6baa (patch) | |
tree | 8a8054ae9c962b508b7cb44e789bb0ab70398819 /vdrmanager/src | |
parent | ebaa0bc5d7c1bdf403ef8a51cf9a34fe6537f48b (diff) | |
download | vdr-manager-82898e69214fb416bb8df75f7c50d6cf4efc6baa.tar.gz vdr-manager-82898e69214fb416bb8df75f7c50d6cf4efc6baa.tar.bz2 |
http://projects.vdr-developer.org/issues/1689
Diffstat (limited to 'vdrmanager/src')
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()); |