Skip to content

Counter example not keeping state/count #1031

@brh

Description

@brh

I am trying to integrate the counter example into the KMM project template. I have it working so far but on Android when I rotate the emulator it loses the count.

So, I know in the docs it talks about a Parcelizer issue, I tried to overcome this by injecting the AndroidCounterScreen as can be seen in AndroidModule.kt line 50. But for whatever reason, when I rotate the presenter is recreated everytime.

Code here -> https://github.com/brh/KMPRadio/tree/working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions