n-apps / ScoreCounter

Android app. Score Counter will help you easily keep score in any games, sports or other activities. Will do all the math for tracking initiative, HP, hit points, spell slots or even count win streaks in your bar game night!
GNU General Public License v3.0
70 stars 19 forks source link

Use a unique color when adding a new counter #21

Closed matthias1700 closed 5 years ago

matthias1700 commented 6 years ago

I am done with this issue. The problem was that the Name of counter, especially the number, was getting automatically from DB and there was a problem. e.g. when you deleted the counter with number 7 and the last one in view is number 8, next created counter will be allocated as counter number 8 and colour of counter is getting from the last created counter. If you deleted more than 1 counter, colour was still getting value from last one creating.

I just added new variable for this fix.

Now, when you delete some counter, the queue of colors will continue and the Value of counter is right. When you delete counter with number 7 and last in view is with number 8. the new counter have value 9 and another color as last one. I think, this problem is solved.