This contains the change to show a different fragment on private space creation error based on the error code returned by UserManager. On private space create error checks for the returned error code and if PS is not supported on the device showns error screen containing a link to Help Center atricle to find out more about the reason for profile creation failure. ACTION_PRIVATE_SPACE_SETUP_SPACE_ERRORS metric is logged with the error code on create error else 0 on sucessful space creation. Recording: b/340130375#comment17 Bug: 340130375 Test: Manual Flag: android.multiuser.show_different_creation_error_for_unsupported_devices Change-Id: Ifa0345fb6aad64599009f8aa79d168f57fd35c03
83 lines
4.0 KiB
XML
83 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2023 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/privatespace_main_context_nav"
|
|
app:startDestination="@id/ps_education_fragment">
|
|
<fragment android:id="@+id/ps_education_fragment"
|
|
android:name="com.android.settings.privatespace.PrivateSpaceEducation"
|
|
android:label="fragment_ps_education">
|
|
<action
|
|
android:id="@+id/action_education_to_create"
|
|
app:destination="@id/ps_create_fragment"/>
|
|
</fragment>
|
|
<fragment android:id="@+id/ps_create_fragment"
|
|
android:name="com.android.settings.privatespace.PrivateSpaceCreationFragment"
|
|
android:label="fragment_ps_create">
|
|
<action
|
|
android:id="@+id/action_create_profile_error"
|
|
app:destination="@id/ps_profile_error_fragment"/>
|
|
<action
|
|
android:id="@+id/action_set_lock_fragment"
|
|
app:destination="@id/ps_profile_lock_fragment"/>
|
|
<action
|
|
android:id="@+id/action_create_profile_error_restrict"
|
|
app:destination="@id/ps_profile_error_restricted_fragment"/>
|
|
</fragment>
|
|
<fragment android:id="@+id/ps_profile_error_fragment"
|
|
android:name="com.android.settings.privatespace.PrivateProfileCreationError"
|
|
android:label="fragment_ps_error">
|
|
<action
|
|
android:id="@+id/action_retry_profile_creation"
|
|
app:destination="@id/ps_create_fragment"/>
|
|
</fragment>
|
|
<fragment android:id="@+id/ps_pre_finish_delay_fragment"
|
|
android:name="com.android.settings.privatespace.SetupPreFinishDelayFragment"
|
|
android:label="fragment_ps_pre_finish">
|
|
<action
|
|
android:id="@+id/action_success_fragment"
|
|
app:destination="@id/ps_profile_success_fragment"/>
|
|
</fragment>
|
|
<fragment android:id="@+id/ps_profile_success_fragment"
|
|
android:name="com.android.settings.privatespace.SetupSuccessFragment"
|
|
android:label="fragment_ps_success"/>
|
|
<fragment android:id="@+id/ps_account_error_fragment"
|
|
android:name="com.android.settings.privatespace.PrivateSpaceAccountLoginError"
|
|
android:label="fragment_account_error">
|
|
<action
|
|
android:id="@+id/action_skip_account_login"
|
|
app:destination="@id/ps_profile_lock_fragment"/>
|
|
</fragment>
|
|
<fragment android:id="@+id/ps_profile_lock_fragment"
|
|
android:name="com.android.settings.privatespace.PrivateSpaceSetLockFragment"
|
|
android:label="fragment_ps_lock">
|
|
<action
|
|
android:id="@+id/action_lock_success_fragment"
|
|
app:destination="@id/ps_pre_finish_delay_fragment"/>
|
|
</fragment>
|
|
<fragment android:id="@+id/ps_profile_error_restricted_fragment"
|
|
android:name="com.android.settings.privatespace.PrivateProfileCreationRestrictedError"
|
|
android:label="fragment_ps_error_exit"/>
|
|
<action android:id="@+id/action_pre_finish_delay_fragment"
|
|
app:destination="@id/ps_pre_finish_delay_fragment"/>
|
|
<action android:id="@+id/action_advance_login_error"
|
|
app:destination="@id/ps_account_error_fragment"/>
|
|
<action android:id="@+id/show_set_lock_fragment"
|
|
app:destination="@id/ps_profile_lock_fragment"/>
|
|
</navigation>
|