OSDN Git Service

Prevent orientation changes from destroying/recreating security settings
authorScott Mertz <scott@cyngn.com>
Wed, 29 Jun 2016 01:00:08 +0000 (18:00 -0700)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Tue, 5 Jul 2016 23:24:07 +0000 (16:24 -0700)
commitd4287ef98ddcaa759b0f3501f51ef52065d2605b
tree2d294fead80c54df649accf3b8cf95ffe3fa6222
parente64a234e25e61a906c94b3ba0a87f322c3caaaac
Prevent orientation changes from destroying/recreating security settings

Logic in SecuritySettings deliberately recreates the entire preference
tree in onResume rather than onCreate.  This causes the state to be
lost when the orientation changes.

Instead of destroying/recreating when the orientation changes, handle
it ourselves.

Change-Id: I6276d8f97cb64a4823286f263642926561d7f2d0
AndroidManifest.xml
src/com/android/settings/SubSettings.java
src/com/android/settings/Utils.java