File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,7 @@ public Optional<TimeTrackingItem> endCurrentItem(DateTime endTime) {
6363
6464 @ Override
6565 public void resumeGivenItem (TimeTrackingItem item ) {
66- TimeTrackingItem newItem = new TimeTrackingItem (
67- item .getComment ().get (), DateTime .now ());
68- parser .resumeItemCommand (newItem ).execute ();
66+ parser .resumeItemCommand (item ).execute ();
6967 }
7068
7169 @ Override
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ public Optional<Command> endCurrentItemCommand(DateTime endTime) {
6969 }
7070
7171 public Command resumeItemCommand (final TimeTrackingItem item ) {
72- return new ResumeCommand (persister , item );
72+ TimeTrackingItem newItem = new TimeTrackingItem (
73+ item .getComment ().get (), DateTime .now ());
74+ return new ResumeCommand (persister , newItem );
7375 }
7476
7577 public Command deleteCommandFor (TimeTrackingItem item ) {
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ private void updateItems() {
271271
272272 @ Override
273273 public void continueItem (TimeTrackingItem item ) {
274+ LOG .severe ("Continuing item: " + item );
274275 commandParser .resumeItemCommand (item ).execute ();
275276 viewAdapter .shutdown ();
276277 }
You can’t perform that action at this time.
0 commit comments