Spikeysanju / Einsen

🎯 Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
Apache License 2.0
912 stars 79 forks source link

Wrong Urgency and Importance values #70

Closed tochanenko closed 2 years ago

tochanenko commented 2 years ago

Describe the bug Urgency and Importance fields have incorrect values assigned to them while creating and editing tasks. It is less than it should be.

To Reproduce Steps to reproduce the behavior:

  1. Create new Task and fill in "Title", "Description" and "Category" fields.
  2. Set "Urgency" and "Importance" to 5.
  3. Save Task.
  4. Go to Task edit mode.
  5. Set "Urgency" and "Importance" to 0.

Expected behavior Urgency and Importance to be equal to 5 before editing; equal to 0 after editing.

Screenshots

 

Smartphone Details

Additional context All Urgency and Importance values are less then should be:

Expected value Real value
0 0.0 or 1.528324E-9/5
1 0.8
2 1.6
3 2.4
4 3.2
5 4.0
Spikeysanju commented 2 years ago

@tochanenko Hey mate, Thanks for bringing this up 🙌 . It seems like there was an issue with the rounding the Float. Also I've started working on fixing this issue.

Spikeysanju commented 2 years ago

@tochanenko This issue has been fixed with latest PR #73. Have a great day buddy 🙌