Save app toggle state as soon as possible
Delaying applying the states till onPause() sometimes results in the apps disappearing slowly as the new user is booting up, causing failed queued up broadcasts that result in crash dialogs. This happens mainly when the user switch is initiated via QuickSettings->LockScreen->Switch while the App restrictions screen is still showing. The onPause() gets called when SetupWizard actually takes focus, which is quite late, as boot completed and other events have already been queued. Apply the initial toggles right away and apply any user changes when primary is going to background, or onPause(), whichever comes first. Bug: 8685927 Also ensure that apps with restrictions get a chance to persist their defaults as soon as they are toggled on. The user may never actually click on the settings icon for the app (which was the only way they were getting persisted before). Some new strings for an upcoming change. Change-Id: I96f453d066a91c6b15eafe9a6ce3f42d98bf5e33
This commit is contained in:
@@ -4328,6 +4328,10 @@
|
||||
<string name="user_add_user_menu">Add user or profile</string>
|
||||
<!-- User settings summary for a restricted profile [CHAR LIMIT=50] -->
|
||||
<string name="user_summary_restricted_profile">Restricted profile</string>
|
||||
<!-- User settings warning that restricted profile needs a screen lock [CHAR LIMIT=NONE] -->
|
||||
<string name="user_need_lock_message">Before you can create a restricted profile, you\'ll need to set up a screen lock to protect your apps and personal data.</string>
|
||||
<!-- User settings dialog button to set screen lock [CHAR LIMIT=25] -->
|
||||
<string name="user_set_lock_button">Set lock</string>
|
||||
<!-- User summary to indicate that user is currently not set up [CHAR LIMIT=100] -->
|
||||
<string name="user_summary_not_set_up">Not set up</string>
|
||||
<!-- User summary to indicate that restricted profile is currently not set up [CHAR LIMIT=100] -->
|
||||
|
Reference in New Issue
Block a user