Skip to content

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

Description

@KishorJena

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions