1<?xml version="1.0" encoding="utf-8"?> 2<navigation xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 app:startDestination="@id/migrationNavigationFragment" 5 android:id="@+id/migration_nav_graph"> 6 7 <fragment 8 android:id="@+id/migrationNavigationFragment" 9 android:name="com.android.healthconnect.controller.migration.MigrationNavigationFragment"> 10 <action 11 android:id="@+id/action_migrationNavigationFragment_to_dataRestoreInProgressFragment" 12 app:popUpTo="@id/migrationNavigationFragment" 13 app:popUpToInclusive="true" 14 app:destination="@id/dataRestoreInProgressFragment"/> 15 <action 16 android:id="@+id/action_migrationNavigationFragment_to_migrationInProgressFragment" 17 app:popUpTo="@id/migrationNavigationFragment" 18 app:popUpToInclusive="true" 19 app:destination="@id/migrationInProgressFragment"/> 20 <action 21 android:id="@+id/action_migrationNavigationFragment_to_migrationAppUpdateNeededFragment" 22 app:popUpTo="@id/migrationNavigationFragment" 23 app:popUpToInclusive="true" 24 app:destination="@id/migrationAppUpdateNeededFragment"/> 25 <action 26 android:id="@+id/action_migrationNavigationFragment_to_migrationModuleUpdateNeededFragment" 27 app:popUpTo="@id/migrationNavigationFragment" 28 app:popUpToInclusive="true" 29 app:destination="@id/migrationModuleUpdateNeededFragment"/> 30 <action 31 android:id="@+id/action_migrationNavigationFragment_to_migrationPausedFragment" 32 app:popUpTo="@id/migrationNavigationFragment" 33 app:popUpToInclusive="true" 34 app:destination="@id/migrationPausedFragment"/> 35 <action 36 android:id="@+id/action_migrationNavigationFragment_to_homeFragment" 37 app:destination="@id/healthConnectHomeActivity"/> 38 </fragment> 39 <fragment 40 android:id="@+id/migrationInProgressFragment" 41 android:name="com.android.healthconnect.controller.migration.MigrationInProgressFragment"> 42 </fragment> 43 <fragment 44 android:id="@+id/dataRestoreInProgressFragment" 45 android:name="com.android.healthconnect.controller.migration.DataRestoreInProgressFragment"> 46 </fragment> 47 48 <fragment 49 android:id="@+id/migrationAppUpdateNeededFragment" 50 android:name="com.android.healthconnect.controller.migration.AppUpdateRequiredFragment"> 51 <action 52 android:id="@+id/action_migrationAppUpdateNeededFragment_to_updateAppActivity" 53 app:destination="@id/updateAppActivity"/> 54 <action 55 android:id="@+id/action_migrationAppUpdateNeededFragment_to_homeScreen" 56 app:destination="@id/healthConnectHomeActivity"/> 57 <action 58 android:id="@+id/action_migrationAppUpdateNeededFragment_to_migrationNavigationFragment" 59 app:popUpTo="@id/migrationAppUpdateNeededFragment" 60 app:popUpToInclusive="true" 61 app:destination="@id/migrationNavigationFragment"/> 62 </fragment> 63 64 <fragment 65 android:id="@+id/migrationModuleUpdateNeededFragment" 66 android:name="com.android.healthconnect.controller.migration.ModuleUpdateRequiredFragment"> 67 <action 68 android:id="@+id/action_migrationModuleUpdateNeededFragment_to_systemUpdateActivity" 69 app:destination="@id/systemUpdateActivity"/> 70 <action 71 android:id="@+id/action_migrationModuleUpdateNeededFragment_to_homeScreen" 72 app:destination="@id/healthConnectHomeActivity"/> 73 </fragment> 74 75 <fragment 76 android:id="@+id/migrationPausedFragment" 77 android:name="com.android.healthconnect.controller.migration.MigrationPausedFragment"> 78 <action 79 android:id="@+id/action_migrationPausedFragment_to_homeScreen" 80 app:destination="@id/healthConnectHomeActivity"/> 81 <action 82 android:id="@+id/action_migrationPausedFragment_to_migrationApk" 83 app:destination="@id/migrationApk"/> 84 85 </fragment> 86 87 <activity 88 android:id="@+id/migrationApk" 89 app:action="android.health.connect.action.SHOW_MIGRATION_INFO" 90 android:label="migrationApk"/> 91 92 <activity 93 android:id="@+id/systemUpdateActivity" 94 app:action="android.settings.SYSTEM_UPDATE_SETTINGS" 95 android:label="systemUpdateActivity"/> 96 97 <activity 98 android:id="@+id/updateAppActivity" 99 app:action="android.health.connect.action.SHOW_MIGRATION_INFO" 100 android:label="updateAppActivity"/> 101 102 <activity 103 android:id="@+id/storageSettingsActivity" 104 app:action="android.settings.INTERNAL_STORAGE_SETTINGS" 105 android:label="storageSettingsActivity"/> 106 107 <activity 108 android:id="@+id/healthConnectHomeActivity" 109 app:action="android.health.connect.action.HEALTH_HOME_SETTINGS"/> 110</navigation>