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

[Bug]: Screen is not retained after process death #1664

Open
3 tasks done
gyorgygabor opened this issue Oct 3, 2024 · 2 comments
Open
3 tasks done

[Bug]: Screen is not retained after process death #1664

gyorgygabor opened this issue Oct 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gyorgygabor
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

Steps to reproduce:

  1. Open the app
  2. Go to Interests -> Accessibility(just an example)
  3. Put the app in the background
  4. Trigger a process death
  5. Reopen the app

Result: The For You screen is opened, instead of the last opened screen(Interests -> Accessibility)

Tested on Samsung S20, demoDebug build.

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gyorgygabor gyorgygabor added the bug Something isn't working label Oct 3, 2024
@Vivek-2004
Copy link

Seems that this is not a bug, rather a normal behaviour of the app.

@vvb2060
Copy link

vvb2060 commented Nov 26, 2024

Saved instance state bundles persist through both configuration changes and process death, use saved instance state to store a minimal amount of data necessary, such as an ID, to re-create the data necessary to restore the UI back to its previous state should the other persistence mechanisms fail. Most apps should implement this to handle system-initiated process death.

https://developer.android.com/topic/libraries/architecture/saving-states#onsaveinstancestate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants