hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Hawk.count() shows it has items but when use hawl.get(key, type) it gives only last or zero items

Open KishorJena opened this issue 3 years ago • 0 comments

Please try to fill all questions below before submitting an issue.

  • [x] On which android versions do you have this issue? : Android 10
  • [x] On which phones do you have this issue? : Redmi note 7 pro
  • [x] Which hawk version are you using? : "com.orhanobut:hawk:2.0.1"
  • [x] Does this issue happen always or is it flaky? : always
  • [ ] Can you write failing test? :
  • [x] Is the data you are trying to save it huge or small? : small
  • [x] If it is Hawk.put and Hawk.get issue, can you write down which data you were trying to save and get it back? List<StickerPack> packs = Hawk.get("sticker_packs", new ArrayList<StickerPack>());

app stored 158 sticker packs and whatsapp can access those sticker packs. But when I tried to access it withing class it give only one item which last added item while Hawk.count() gives proper count. I saw there is syntax for single or multiple items retrieval. But when I pass second argument as boolean it gives error that it accepts (key, type).

KishorJena avatar Jul 17 '22 10:07 KishorJena