Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3335626c authored by Joel Galenson's avatar Joel Galenson
Browse files

Correctly save and restore state.

ManagePermissionsActivity always created a new fragment even when it
had an old one to restore, which meant its fragments could not
properly restore their state (and presumably wasted some resources).

In addition, this also cleans up some of the PermissionUsageFragment
save/restore code now that I can consistently test it.

Fixes: 130719885
Test: Open PermissionUsageFragment, change each of the menu items it
saves, go to home with "Don't keep activities" enabled, restore it,
and see the menu items are properly restored.
Test: Open each fragment launched from ManagePermissionsActivity, go
to home, then restore the fragment, both with and without the "Don't
keep activities" developer option.

Change-Id: Ief1e406bd4072d10a232fa1fd124d68dabc96512
parent e6d3e0c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment