Add intent to start Private Space setup/settings

Bug: 310027945
Test: Manual
Change-Id: I9df2b239ba24ac44c65a4cb3c18214bbc27bbcec
This commit is contained in:
josephpv
2023-11-09 23:06:20 +00:00
parent bd0eb0dd31
commit 92f28a17c8
2 changed files with 16 additions and 7 deletions

View File

@@ -42,9 +42,10 @@ import com.android.settingslib.transition.SettingsTransitionHelper;
import com.google.android.setupdesign.util.ThemeHelper;
/**
* Prompts user to set a device lock if not set with an alert dialog.
* If a lock is already set then first authenticates user before displaying private space settings
* page.
* This class represents an activity responsible for user authentication before starting the private
* space setup flow or accessing the private space settings page if already created. Also prompts
* user to set a device lock if not set with an alert dialog. This can be launched using the intent
* com.android.settings.action.PRIVATE_SPACE_SETUP_FLOW.
*/
public class PrivateSpaceAuthenticationActivity extends FragmentActivity {
private static final String TAG = "PrivateSpaceAuthCheck";
@@ -66,8 +67,9 @@ public class PrivateSpaceAuthenticationActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Flags.allowPrivateProfile()) {
super.onCreate(savedInstanceState);
ThemeHelper.trySetDynamicColor(this);
mPrivateSpaceMaintainer = new Injector().injectPrivateSpaceMaintainer(
getApplicationContext());