Add facility to run setup wizard after an update.
The system now keeps a tag of the last version (just an arbitrary string) that the setup wizard was run for. If this is different than the current one in the setup wizard, then setup is launched at boot. This introduces a new intent action for the part of the setup wizard that gets run for an ungrade, which the system uses to find its current version tag for comparing against what was last stored. It is up to the launched setup activity update the stored setting to reflect its current value, once it is happy.
This commit is contained in:
@@ -2325,6 +2325,14 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
|
||||
if (!mDisplayFrozen) {
|
||||
if (mNextAppTransition == WindowManagerPolicy.TRANSIT_NONE) {
|
||||
mNextAppTransition = transit;
|
||||
} else if (transit == WindowManagerPolicy.TRANSIT_TASK_OPEN
|
||||
&& mNextAppTransition == WindowManagerPolicy.TRANSIT_TASK_CLOSE) {
|
||||
// Opening a new task always supersedes a close for the anim.
|
||||
mNextAppTransition = transit;
|
||||
} else if (transit == WindowManagerPolicy.TRANSIT_ACTIVITY_OPEN
|
||||
&& mNextAppTransition == WindowManagerPolicy.TRANSIT_ACTIVITY_CLOSE) {
|
||||
// Opening a new activity always supersedes a close for the anim.
|
||||
mNextAppTransition = transit;
|
||||
}
|
||||
mAppTransitionReady = false;
|
||||
mAppTransitionTimeout = false;
|
||||
|
||||
Reference in New Issue
Block a user