Add support for select multiple request.
:camera: Screenshots
:page_facing_up: Context
Issue link: Share Multiple Request at One Time
:pencil: Changes
Made change in TransactionAdapter to show color on Selected. Transaction, list of selected position, lambda for longClick on itemView. Also Add query for get selected transaction data, delete transaction data.
:hammer_and_wrench: How to test
Long press at any transaction to select transaction, after that click other transaction to select them too.
@cortinico what should i do next?
Thanks @cortinico for review, i will try to fix that ASAP.
@rohitjakhar Just to set expectations, I'll be able to take a look at this only next week.
@cortinico I resolve conflicts, test all corner cases.
@rohitjakhar sorry I've been off for XMas vacation and haven't had time to look at this again. I can look into it this week so we can merge it. Could you fix the detekt/ktlint failures in the meanwhile?
We're getting close to a mergeabble state :)
@cortinico I fix above issues.
@cortinico can you give me next step to merge it?
@cortinico I just update code and run ktlintformat.
@cortinico should i supress TooManyFunctions ?
@cortinico should i supress TooManyFunctions ?
Yes please do, it's reasonable to do so in MainActivity.kt
@cortinico All are green
@rohitjakhar thanks for following up.
Sadly there are still a couple of bugs:
- The 4xx transactions are rendered impossible to read (see screnshot). We should probably change the text color to black when things are selected.
- If you quickly select transactions as they're getting populated, you end up in a broken state where not all selected transactions are actually deleted. See video:
https://github.com/ChuckerTeam/chucker/assets/3001957/36f5c85b-c2b8-4f54-ac05-1a4468dd8f61
Can I ask you to look into those 2 problems and then we can merge it 👍