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

Commit 82b4c333 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Correctly deal with dialogs in PackageInstallerActivity

- All UI (including dialogs) get recreated onCreate. Hence never restore
  any instance state
- Use suggested methods for dialog transactions.
- As all fragments get recreated after onCreate, no need to ever be
  afraid of fragment state loss.
- Persist mAllowUnknownSources when AnonymousSourceDialog was confirmed

Test: - Tried to install app and saw 'unknown sources' dialog. Rotated
        phone to go through activity lifecycle. Saw dialog recreated.
      - Confirmed 'unknown sources' dialog and rotated phone. Dialog was
        not shown again.
Fixes: 73119376

Change-Id: I58df73b806a11066e1117c2962e3219069a93431
parent 59402b5d
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