gcaufield / TogglIQ

ConnectIQ widget for controlling a Toggl Track Timer

Home Page:https://apps.garmin.com/en-US/apps/83f14afb-dbba-4ec4-9de5-279404102e11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start Recent Timer with the same timer description

JoArrhen opened this issue · comments

Describe the bug

A clear description of the bug
When using the functionality "Start Recent", I can see all the recent timers in the list. The exception is when two projects have the same description, where only one of the entries is displayed.

To Reproduce

Provide instructions to reproduce the behavior seen.

  1. Create at least 2 projects in Toggl
  2. Start a new timer in one of the project with some name, in my case it is something like "General"
  3. Assign one of the project to that timer.
  4. Do the same thing, but with the other project.

Expected Behavior

Describe what is expected to be seen
Two entries, each displaying "General", with the rest of the other recent timers.

Actual Behavior

Describe what is actually seen
One entry displaying "General", with the rest of the other recent timers.

Devices Tested

List the devices and versions that the issue has been seen on.
If issue is seen on CIQ simulator, include simulator version.
Forerunner 935, v0.12.4

Additional Details

Any other context that may be useful

  • Looking at the code, I can see that it is the description that is being compared in TimerData.equals.
  • It would of course be nice to also have the project name as a sublabel in the list, but since it does not seem to be included in the Toggl API response, I would understand if that is not reasonable to do.