Closed tharvik closed 3 months ago
As per my comment on issue #106 :
please make sure it's behind a new setting
As per my comment on issue #106 :
yeah, it's kinda hard to know which issues are relevant to a wanted features as all are closed. consider keeping some open, eventough you don't intend to work on it personnally, as to avoid newcomers opening the same issue (#40, #44, #51, #55, ~#75, #106 in this case) and external contributors to have a clearer summary of what is wanted.
please make sure it's behind a new setting
added. it's a bit weird to handle both use-cases, as two buttons have the same action on an item with an amount of one (minus and delete). also, when changing the crossout setting, I didn't find a nice way to refresh the presentation of the items in the main activity so until the amount change, it keeps the previous style. maybe you have an idea?
when changing the crossout setting, I didn't find a nice way to refresh the presentation of the items in the main activity so until the amount change, it keeps the previous style. maybe you have an idea?
You just gave me a headache because that reminded me of the colour-switch and all the brain-cells I lost making that work. I just changed my mind about having it as a setting (really sorry for the extra work). Feel free to remove that again.
However, it would be nice to have a boolean-setting named "Order zero-count items last" in order to move them to the bottom of the list. Boolean because non-zero items should still follow default sorting order.
when changing the crossout setting
You just gave me a headache because that reminded me of the colour-switch and all the brain-cells I lost making that work. I just changed my mind about having it as a setting (really sorry for the extra work). Feel free to remove that again.
haa yes, android is quite cumbersome to work with. I removed it or rather, I changed it into a boolean switch for sorting zero-count items to the bottom, as you suggested. as such, fadeout of zero-count items name (and minus-button) is always on. and as the sorting option wasn't actually, well, sorting, so I implemented it.
Also feel free to mention yourself in fastlane/metadata/android/en-US/changelogs/17.txt
😉
Also feel free to mention yourself in
fastlane/metadata/android/en-US/changelogs/17.txt
😉
haha, added in latest commit :)
Thank you for your contribution 🏆
Checklist
Changes
ShoppingListAdapter.changeItemCallback
to usenull
for deletion instead of zeroNew functionality
fade-out name when amount equals zero
Changed & removed functionality
substracting when zero no longer delete item. it pushes you to use the dedicated button to do that (wanted to add a toaster notification but felt a bit out of scope).