Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Scroll Type Animation doesn't restore properly when state is lost (e.g. Don't Keep Activities Enabled) #10

@babramovitch

Description

@babramovitch

I'm using an animation similar to the AnimScrollActivity and ran into issue when I tested restoring my app from state loss.

In developer settings I turned on "Don't keep activities" and then I opened the app and scrolled the activity all the way up which works as expected. I then leave the app and return, and the animation is now like this

afterreturning

If I then scroll, it turns into this

afterscrolling

I've tried things like adding this into the onCreate but it causes an animation at the start, and still doesn't fully place items in the correct spots, and if I take it out of the post, it's wrong right away.

 scrollview.post {
            scrollview.scrollTo(0, 0)
            animation.reset()
 }

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