Skip to content

[Enhacement] Save app state: category name (fixes part of issue #4965) #5092

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wangfengqi110
Copy link

@wangfengqi110 wangfengqi110 commented Oct 23, 2022

Description (required)

Fixes the bug #4965 that If users view another app, then any work in progress in this app is lost

What changes did you make and why?
Saved category name of images when users leaving, and reloaded the category name of image when users return. After this change, user can see the app state is remain the same as they left and they can continue from where they left.

Tests performed (required)
The issue is about switching between common app and other app, unit test is not fit for this issue.

@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString("categoryName", categoryName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment including example values, especially with multiple selected categories. Thanks!

@nicolas-raoul nicolas-raoul changed the title Issue 4965 [Enhacement] Save app state: category name (fixes part of issue #4965) Oct 29, 2022
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

Successfully merging this pull request may close these issues.

5 participants