Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 of 7 tasks
KishorJena opened this issue Jul 17, 2022 · 0 comments

Comments

@KishorJena
Copy link

KishorJena commented Jul 17, 2022

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

  • On which android versions do you have this issue? : Android 10
  • On which phones do you have this issue? : Redmi note 7 pro
  • Which hawk version are you using? : "com.orhanobut:hawk:2.0.1"
  • Does this issue happen always or is it flaky? : always
  • Can you write failing test? :
  • Is the data you are trying to save it huge or small? : small
  • 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant