Add auto advancing screens for private space setup
This includes changes for 1. To add auto avancing screens to PS setup 2. Screen to set a different Private profile lock or use existing lock 3. Success screen on setup completion 4. Shows Error screen if profile creation failed for some reason 5. Send intent towards launcher, show a Toast message to access PS from bottom of All apps and exit. Bug: 299069146 Test: Manual setup Change-Id: If4e5dd5a42abb11259bc40506189c7c750324139
This commit is contained in:
@@ -162,6 +162,15 @@ public class PrivateSpaceMaintainer {
|
||||
/* title= */ null, /* description= */ null);
|
||||
}
|
||||
|
||||
/** Returns Private profile user handle if private profile exists otherwise returns null. */
|
||||
@Nullable
|
||||
public synchronized UserHandle getPrivateProfileHandle() {
|
||||
if (doesPrivateSpaceExist()) {
|
||||
return mUserHandle;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/** Returns the instance of {@link PrivateSpaceMaintainer} */
|
||||
public static synchronized PrivateSpaceMaintainer getInstance(Context context) {
|
||||
if (sPrivateSpaceMaintainer == null) {
|
||||
|
Reference in New Issue
Block a user