nav_graph.xml 39.5 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
3
4
5
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/nav_graph"
6
    app:startDestination="@id/homeFragment">
7

Jeff Boek's avatar
Jeff Boek committed
8
9
    <action
        android:id="@+id/action_global_home"
10
        app:destination="@id/homeFragment"
11
        app:popUpTo="@id/homeFragment"
Jeff Boek's avatar
Jeff Boek committed
12
        app:popUpToInclusive="true" />
Jeff Boek's avatar
Jeff Boek committed
13

14
15
    <action
        android:id="@+id/action_global_browser"
16
        app:destination="@id/browserFragment"
17
        app:popUpTo="@id/homeFragment"
Jeff Boek's avatar
Jeff Boek committed
18
        app:popUpToInclusive="false" />
19

Tiger Oakes's avatar
Tiger Oakes committed
20
21
22
    <action
        android:id="@+id/action_global_external_app_browser"
        app:destination="@id/externalAppBrowserFragment"
23
24
        app:popUpTo="@id/homeFragment"
        app:popUpToInclusive="false" />
Tiger Oakes's avatar
Tiger Oakes committed
25

Yeon Taek Jeong's avatar
Yeon Taek Jeong committed
26
27
    <action
        android:id="@+id/action_global_search"
28
        app:destination="@id/searchFragment" />
Yeon Taek Jeong's avatar
Yeon Taek Jeong committed
29

30
31
32
33
    <action
        android:id="@+id/action_global_search_dialog"
        app:destination="@id/searchDialogFragment" />

34
35
36
37
38
39
40
41
42
43
44
    <action
        android:id="@+id/action_global_shareFragment"
        app:destination="@id/shareFragment" />
    <action
        android:id="@+id/action_global_crash_reporter"
        app:destination="@id/crashReporterFragment" />
    <action
        android:id="@+id/action_global_turn_on_sync"
        app:destination="@id/turnOnSyncFragment" />
    <action
        android:id="@+id/action_global_settings_addonsManagementFragment"
Tiger Oakes's avatar
Tiger Oakes committed
45
        app:destination="@id/addons_management_graph" />
46
47
    <action
        android:id="@+id/action_global_searchEngineFragment"
Tiger Oakes's avatar
Tiger Oakes committed
48
        app:destination="@id/search_engine_graph" />
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    <action
        android:id="@+id/action_global_accessibilityFragment"
        app:destination="@id/accessibilityFragment" />
    <action
        android:id="@+id/action_global_deleteBrowsingDataFragment"
        app:destination="@id/deleteBrowsingDataFragment" />
    <action
        android:id="@+id/action_global_webExtensionActionPopupFragment"
        app:destination="@id/webExtensionActionPopupFragment" />
    <action
        android:id="@+id/action_global_settingsFragment"
        app:destination="@id/settingsFragment" />
    <action
        android:id="@+id/action_global_syncedTabsFragment"
63
        app:destination="@id/syncedTabsFragment" />
64
65
66
67
68
69
70
71
72
    <action
        android:id="@+id/action_global_privateBrowsingFragment"
        app:destination="@id/privateBrowsingFragment" />
    <action
        android:id="@+id/action_global_bookmarkFragment"
        app:destination="@id/bookmarkFragment" />
    <action
        android:id="@+id/action_global_historyFragment"
        app:destination="@id/historyFragment" />
Kate Glazko's avatar
Kate Glazko committed
73
74
75

    <action android:id="@+id/action_global_downloadsFragment"
        app:destination="@id/downloadsFragment" />
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    <action
        android:id="@+id/action_global_accountProblemFragment"
        app:destination="@id/accountProblemFragment" />
    <action
        android:id="@+id/action_global_SitePermissionsManagePhoneFeature"
        app:destination="@id/SitePermissionsManagePhoneFeature" />
    <action
        android:id="@+id/action_global_collectionCreationFragment"
        app:destination="@id/collectionCreationFragment" />
    <action
        android:id="@+id/action_global_bookmarkEditFragment"
        app:destination="@id/bookmarkEditFragment" />
    <action
        android:id="@+id/action_global_addonsManagementFragment"
Tiger Oakes's avatar
Tiger Oakes committed
90
        app:destination="@id/addons_management_graph" />
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
    <action
        android:id="@+id/action_global_trackingProtectionFragment"
        app:destination="@id/trackingProtectionFragment" />
    <action
        android:id="@+id/action_global_trackingProtectionExceptionsFragment"
        app:destination="@id/trackingProtectionExceptionsFragment" />
    <action
        android:id="@+id/action_global_accountSettingsFragment"
        app:destination="@id/accountSettingsFragment" />
    <action
        android:id="@+id/action_global_trackingProtectionPanelDialogFragment"
        app:destination="@id/trackingProtectionPanelDialogFragment" />
    <action
        android:id="@+id/action_global_quickSettingsSheetDialogFragment"
        app:destination="@id/quickSettingsSheetDialogFragment" />
    <action
        android:id="@+id/action_global_tabTrayDialogFragment"
        app:destination="@id/tabTrayDialogFragment" />
109
110
111
    <action
        android:id="@+id/action_global_savedLoginsAuthFragment"
        app:destination="@id/savedLoginsAuthFragment" />
112
113
114
    <action
        android:id="@+id/action_global_tabHistoryDialogFragment"
        app:destination="@id/tabHistoryDialogFragment" />
115
116
117
118

    <dialog
        android:id="@+id/tabTrayDialogFragment"
        android:name="org.mozilla.fenix.tabtray.TabTrayDialogFragment"
119
120
121
122
123
124
        tools:layout="@layout/fragment_tab_tray_dialog">
        <argument
            android:name="enterMultiselect"
            android:defaultValue="false"
            app:argType="boolean" />
    </dialog>
Gabriel Luong's avatar
Gabriel Luong committed
125

126
127
128
129
    <fragment
        android:id="@+id/homeFragment"
        android:name="org.mozilla.fenix.home.HomeFragment"
        tools:layout="@layout/fragment_home">
130
131
132
133
        <argument
            android:name="focusOnAddressBar"
            android:defaultValue="false"
            app:argType="boolean" />
134
135
        <argument
            android:name="session_to_delete"
136
            android:defaultValue="@null"
137
            app:argType="string"
138
            app:nullable="true" />
139
    </fragment>
140

141
142
143
    <dialog
        android:id="@+id/searchDialogFragment"
        android:name="org.mozilla.fenix.searchdialog.SearchDialogFragment"
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
        tools:layout="@layout/fragment_search_dialog">
        <argument
            android:name="session_id"
            app:argType="string"
            app:nullable="true" />
        <argument
            android:name="pastedText"
            android:defaultValue="@null"
            app:argType="string"
            app:nullable="true" />
        <argument
            android:name="search_access_point"
            android:defaultValue="NONE"
            app:argType="org.mozilla.fenix.components.metrics.Event$PerformedSearch$SearchAccessPoint" />
    </dialog>
159

160
161
162
163
    <fragment
        android:id="@+id/searchFragment"
        android:name="org.mozilla.fenix.search.SearchFragment"
        tools:layout="@layout/fragment_search">
Emily Kager's avatar
Emily Kager committed
164
165
166
167
        <argument
            android:name="session_id"
            app:argType="string"
            app:nullable="true" />
168
169
        <argument
            android:name="pastedText"
170
            android:defaultValue="@null"
171
            app:argType="string"
172
            app:nullable="true" />
173
174
        <argument
            android:name="search_access_point"
175
176
            android:defaultValue="NONE"
            app:argType="org.mozilla.fenix.components.metrics.Event$PerformedSearch$SearchAccessPoint" />
177
    </fragment>
178

179
180
    <fragment
        android:id="@+id/SitePermissionsManagePhoneFeature"
181
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsManagePhoneFeatureFragment"
182
183
        tools:layout="@layout/fragment_manage_site_permissions_feature_phone">
        <argument
184
185
            android:name="phoneFeature"
            app:argType="org.mozilla.fenix.settings.PhoneFeature" />
186
187
    </fragment>

188
189
190
    <fragment
        android:id="@+id/browserFragment"
        android:name="org.mozilla.fenix.browser.BrowserFragment"
191
        app:exitAnim="@anim/fade_out"
192
        tools:layout="@layout/fragment_browser">
193
194
        <action
            android:id="@+id/action_browserFragment_to_searchFragment"
195
            app:destination="@id/searchFragment"
196
            app:enterAnim="@anim/fade_in_up"
197
            app:popExitAnim="@anim/fade_out_down" />
198
        <argument
199
            android:name="activeSessionId"
200
201
            app:argType="string"
            app:nullable="true" />
202
203
204
        <action
            android:id="@+id/action_browserFragment_to_syncedTabsFragment"
            app:destination="@id/syncedTabsFragment" />
205
206
207
        <action
            android:id="@+id/action_browserFragment_to_settingsFragment"
            app:destination="@id/settingsFragment" />
208
        <action
ekager's avatar
ekager committed
209
210
            android:id="@+id/action_browserFragment_to_createShortcutFragment"
            app:destination="@id/createShortcutFragment" />
211
        <action
212
213
            android:id="@+id/action_browserFragment_to_pwaOnboardingDialogFragment"
            app:destination="@id/pwaOnboardingDialogFragment" />
214
215
216
        <action
            android:id="@+id/action_browserFragment_to_quickSettingsSheetDialogFragment"
            app:destination="@id/quickSettingsSheetDialogFragment" />
217
218
219
        <action
            android:id="@+id/action_browserFragment_to_trackingProtectionPanelDialogFragment"
            app:destination="@id/trackingProtectionPanelDialogFragment" />
220
221
222
        <action
            android:id="@+id/action_browserFragment_to_tabsTrayFragment"
            app:destination="@+id/tabTrayFragment" />
223
    </fragment>
224

Tiger Oakes's avatar
Tiger Oakes committed
225
    <fragment
226
227
228
        android:id="@+id/externalAppBrowserFragment"
        android:name="org.mozilla.fenix.customtabs.ExternalAppBrowserFragment"
        tools:layout="@layout/fragment_browser">
ekager's avatar
ekager committed
229
230
231
232
233
234
235
236
        <argument
            android:name="activeSessionId"
            app:argType="string"
            app:nullable="true" />
        <argument
            android:name="webAppManifest"
            app:argType="string"
            app:nullable="true" />
Tiger Oakes's avatar
Tiger Oakes committed
237
238
    </fragment>

239
240
241
242
    <fragment
        android:id="@+id/historyFragment"
        android:name="org.mozilla.fenix.library.history.HistoryFragment"
        android:label="@string/library_history"
Jeff Boek's avatar
Jeff Boek committed
243
        tools:layout="@layout/fragment_history" />
244

Kate Glazko's avatar
Kate Glazko committed
245
246
247
248
249
250
    <fragment
        android:id="@+id/downloadsFragment"
        android:name="org.mozilla.fenix.library.downloads.DownloadFragment"
        android:label="Downloads"
        tools:layout="@layout/fragment_downloads" />

251
252
253
254
255
256
257
258
259
260
    <fragment
        android:id="@+id/bookmarkFragment"
        android:name="org.mozilla.fenix.library.bookmarks.BookmarkFragment"
        tools:layout="@layout/fragment_bookmark">
        <argument
            android:name="currentRoot"
            app:argType="string" />
        <action
            android:id="@+id/action_bookmarkFragment_self"
            app:destination="@id/bookmarkFragment" />
261
262
263
        <action
            android:id="@+id/action_bookmarkFragment_to_bookmarkEditFragment"
            app:destination="@id/bookmarkEditFragment" />
264
265
266
        <action
            android:id="@+id/action_bookmarkFragment_to_bookmarkAddFolderFragment"
            app:destination="@id/bookmarkAddFolderFragment" />
267
268
269
270
271
272
273
274
275
    </fragment>

    <fragment
        android:id="@+id/bookmarkEditFragment"
        android:name="org.mozilla.fenix.library.bookmarks.edit.EditBookmarkFragment"
        tools:layout="@layout/fragment_edit_bookmark">
        <argument
            android:name="guidToEdit"
            app:argType="string"
Emily Kager's avatar
Emily Kager committed
276
            app:nullable="false" />
277
278
279
        <action
            android:id="@+id/action_bookmarkEditFragment_to_bookmarkSelectFolderFragment"
            app:destination="@id/bookmarkSelectFolderFragment" />
Mihai Eduard Badea's avatar
Mihai Eduard Badea committed
280
281
        <argument
            android:name="requiresSnackbarPaddingForToolbar"
282
283
            android:defaultValue="false"
            app:argType="boolean" />
284
285
286
287
288
289
290
291
292
293
    </fragment>

    <fragment
        android:id="@+id/bookmarkSelectFolderFragment"
        android:name="org.mozilla.fenix.library.bookmarks.selectfolder.SelectBookmarkFolderFragment"
        android:label="@string/bookmark_select_folder_fragment_label"
        tools:layout="@layout/fragment_select_bookmark_folder">
        <argument
            android:name="folderGuid"
            app:argType="string"
Emily Kager's avatar
Emily Kager committed
294
            app:nullable="true" />
295
296
297
298
299
300
301
302
        <action
            android:id="@+id/action_bookmarkSelectFolderFragment_self"
            app:destination="@id/bookmarkSelectFolderFragment" />
        <action
            android:id="@+id/action_bookmarkSelectFolderFragment_to_bookmarkAddFolderFragment"
            app:destination="@id/bookmarkAddFolderFragment" />
        <argument
            android:name="visitedAddBookmark"
Emily Kager's avatar
Emily Kager committed
303
304
            android:defaultValue="false"
            app:argType="boolean" />
305
306
307
308
309
310
311
312
313
    </fragment>

    <fragment
        android:id="@+id/bookmarkAddFolderFragment"
        android:name="org.mozilla.fenix.library.bookmarks.addfolder.AddBookmarkFolderFragment"
        android:label="@string/bookmark_add_folder_fragment_label">
        <action
            android:id="@+id/action_bookmarkAddFolderFragment_to_bookmarkSelectFolderFragment"
            app:destination="@id/bookmarkSelectFolderFragment" />
314
    </fragment>
315

ekager's avatar
ekager committed
316
    <fragment
317
        android:id="@+id/savedLoginsAuthFragment"
318
        android:name="org.mozilla.fenix.settings.logins.fragment.SavedLoginsAuthFragment"
ekager's avatar
ekager committed
319
320
        android:label="@string/preferences_passwords_logins_and_passwords">
        <action
321
            android:id="@+id/action_savedLoginsAuthFragment_to_loginsListFragment"
322
            app:destination="@id/savedLoginsFragment"
323
324
325
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
326
            app:popExitAnim="@anim/slide_out_right" />
ekager's avatar
ekager committed
327
        <action
328
            android:id="@+id/action_savedLoginsAuthFragment_to_turnOnSyncFragment"
329
            app:destination="@id/turnOnSyncFragment"
330
331
332
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
333
            app:popExitAnim="@anim/slide_out_right" />
334
        <action
335
            android:id="@+id/action_savedLoginsAuthFragment_to_savedLoginsSettingFragment"
336
            app:destination="@id/saveLoginSettingFragment"
337
338
339
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
340
341
342
343
344
345
346
347
            app:popExitAnim="@anim/slide_out_right" />
        <action
            android:id="@+id/action_savedLoginsAuthFragment_to_loginExceptionsFragment"
            app:destination="@id/loginExceptionsFragment"
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
            app:popExitAnim="@anim/slide_out_right" />
ekager's avatar
ekager committed
348
349
    </fragment>

350
351
    <fragment
        android:id="@+id/savedLoginsFragment"
352
        android:name="org.mozilla.fenix.settings.logins.fragment.SavedLoginsFragment"
353
354
355
356
357
358
359
360
361
362
363
        tools:layout="@layout/fragment_saved_logins">
        <action
            android:id="@+id/action_savedLoginsFragment_to_loginDetailFragment"
            app:destination="@id/loginDetailFragment" />
        <action
            android:id="@+id/action_savedLoginsFragment_to_browserFragment"
            app:destination="@id/browserFragment"
            app:popUpTo="@id/settingsFragment"
            app:popUpToInclusive="true" />
    </fragment>

364
365
366
367
    <fragment
        android:id="@+id/syncedTabsFragment"
        android:name="org.mozilla.fenix.sync.SyncedTabsFragment"
        android:label="@string/synced_tabs"
368
        tools:layout="@layout/fragment_synced_tabs" />
369
370
371

    <fragment
        android:id="@+id/loginExceptionsFragment"
372
        android:name="org.mozilla.fenix.exceptions.login.LoginExceptionsFragment"
373
        android:label="@string/preferences_passwords_exceptions"
374
        tools:layout="@layout/fragment_exceptions" />
375

376
377
    <fragment
        android:id="@+id/loginDetailFragment"
378
        android:name="org.mozilla.fenix.settings.logins.fragment.LoginDetailFragment"
379
380
381
382
        tools:layout="@layout/fragment_login_detail">
        <argument
            android:name="savedLoginId"
            app:argType="string"
383
            app:nullable="false" />
384
385
386
387
        <action
            android:id="@+id/action_loginDetailFragment_to_editLoginFragment"
            app:destination="@id/editLoginFragment"
            app:popUpTo="@id/editLoginFragment"
388
            app:popUpToInclusive="true" />
389
390
391
392
    </fragment>

    <fragment
        android:id="@+id/editLoginFragment"
393
        android:name="org.mozilla.fenix.settings.logins.fragment.EditLoginFragment"
394
395
396
397
        android:label="@string/edit">
        <argument
            android:name="savedLoginItem"
            app:argType="org.mozilla.fenix.settings.logins.SavedLogin"
398
            app:nullable="false" />
399
400
401
402
        <action
            android:id="@+id/action_editLoginFragment_to_loginDetailFragment"
            app:destination="@id/loginDetailFragment"
            app:popUpTo="@id/loginDetailFragment"
403
            app:popUpToInclusive="true" />
404
405
    </fragment>

406
407
408
    <fragment
        android:id="@+id/settingsFragment"
        android:name="org.mozilla.fenix.settings.SettingsFragment"
Emily Kager's avatar
Emily Kager committed
409
410
411
        android:label="@string/settings_title">
        <action
            android:id="@+id/action_settingsFragment_to_dataChoicesFragment"
412
            app:destination="@id/dataChoicesFragment"
413
414
415
416
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
            app:popExitAnim="@anim/slide_out_right"
417
            app:popUpTo="@id/settingsFragment" />
Emily Kager's avatar
Emily Kager committed
418
419
        <action
            android:id="@+id/action_settingsFragment_to_sitePermissionsFragment"
420
            app:destination="@id/sitePermissionsFragment"
421
422
423
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
424
            app:popExitAnim="@anim/slide_out_right" />
ekager's avatar
ekager committed
425
        <action
426
            android:id="@+id/action_settingsFragment_to_savedLoginsAuthFragment"
427
            app:destination="@id/savedLoginsAuthFragment"
428
429
430
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
431
            app:popExitAnim="@anim/slide_out_right" />
Emily Kager's avatar
Emily Kager committed
432
433
        <action
            android:id="@+id/action_settingsFragment_to_accessibilityFragment"
434
            app:destination="@id/accessibilityFragment"
435
436
437
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
438
            app:popExitAnim="@anim/slide_out_right" />
Emily Kager's avatar
Emily Kager committed
439
440
        <action
            android:id="@+id/action_settingsFragment_to_accountSettingsFragment"
441
            app:destination="@id/accountSettingsFragment"
442
443
444
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
445
            app:popExitAnim="@anim/slide_out_right" />
446
447
        <action
            android:id="@+id/action_settingsFragment_to_searchEngineFragment"
Tiger Oakes's avatar
Tiger Oakes committed
448
            app:destination="@id/search_engine_graph"
449
450
451
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
452
            app:popExitAnim="@anim/slide_out_right" />
453
        <action
454
            android:id="@+id/action_settingsFragment_to_turnOnSyncFragment"
455
            app:destination="@id/turnOnSyncFragment"
456
457
458
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
459
            app:popExitAnim="@anim/slide_out_right" />
460
461
        <action
            android:id="@+id/action_settingsFragment_to_aboutFragment"
462
            app:destination="@id/aboutFragment"
463
464
465
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
466
            app:popExitAnim="@anim/slide_out_right" />
467
468
        <action
            android:id="@+id/action_settingsFragment_to_secretSettingsFragment"
469
            app:destination="@id/secretSettingsPreference"
470
471
472
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
473
            app:popExitAnim="@anim/slide_out_right" />
Emily Kager's avatar
Emily Kager committed
474
        <action
475
            android:id="@+id/action_settingsFragment_to_customizationFragment"
476
            app:destination="@id/customizationFragment"
477
478
479
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
480
            app:popExitAnim="@anim/slide_out_right" />
481
482
        <action
            android:id="@+id/action_settingsFragment_to_privateBrowsingFragment"
483
            app:destination="@id/privateBrowsingFragment"
484
485
486
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
487
            app:popExitAnim="@anim/slide_out_right" />
488
489
        <action
            android:id="@+id/action_settingsFragment_to_trackingProtectionFragment"
490
            app:destination="@id/trackingProtectionFragment"
491
492
493
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
494
            app:popExitAnim="@anim/slide_out_right" />
495
496
        <action
            android:id="@+id/action_settingsFragment_to_deleteBrowsingDataFragment"
497
            app:destination="@id/deleteBrowsingDataFragment"
498
499
500
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
501
            app:popExitAnim="@anim/slide_out_right" />
502
503
        <action
            android:id="@+id/action_settingsFragment_to_accountProblemFragment"
504
            app:destination="@id/accountProblemFragment"
505
506
507
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
508
            app:popExitAnim="@anim/slide_out_right" />
509
510
        <action
            android:id="@+id/action_settingsFragment_to_deleteBrowsingDataOnQuitFragment"
511
            app:destination="@id/deleteBrowsingDataOnQuitFragment"
512
513
514
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
515
            app:popExitAnim="@anim/slide_out_right" />
516
517
        <action
            android:id="@+id/action_settingsFragment_to_localeSettingsFragment"
518
            app:destination="@id/localeSettingsFragment"
519
520
521
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
522
            app:popExitAnim="@anim/slide_out_right" />
Gabriel Luong's avatar
Gabriel Luong committed
523
524
        <action
            android:id="@+id/action_settingsFragment_to_addonsFragment"
Tiger Oakes's avatar
Tiger Oakes committed
525
            app:destination="@id/addons_management_graph"
526
527
528
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
529
            app:popExitAnim="@anim/slide_out_right" />
530
    </fragment>
531
    <fragment
Emily Kager's avatar
Emily Kager committed
532
533
        android:id="@+id/dataChoicesFragment"
        android:name="org.mozilla.fenix.settings.DataChoicesFragment"
534
        android:label="@string/preferences_data_choices" />
Emily Kager's avatar
Emily Kager committed
535
536
    <fragment
        android:id="@+id/sitePermissionsFragment"
537
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsFragment"
Emily Kager's avatar
Emily Kager committed
538
        android:label="@string/preferences_site_permissions">
539
540
        <action
            android:id="@+id/action_site_permissions_to_manage_phone_features"
541
            app:destination="@id/SitePermissionsManagePhoneFeature"
542
543
544
545
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
            app:popExitAnim="@anim/slide_out_right"
Emily Kager's avatar
Emily Kager committed
546
            app:popUpTo="@id/sitePermissionsFragment" />
547
548
        <action
            android:id="@+id/action_site_permissions_to_exceptions"
Tiger Oakes's avatar
Tiger Oakes committed
549
            app:destination="@id/site_permissions_exceptions_graph"
550
551
552
553
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
            app:popExitAnim="@anim/slide_out_right"
Emily Kager's avatar
Emily Kager committed
554
            app:popUpTo="@id/sitePermissionsFragment" />
555
556
    </fragment>

Emily Kager's avatar
Emily Kager committed
557
558
559
    <fragment
        android:id="@+id/accessibilityFragment"
        android:name="org.mozilla.fenix.settings.AccessibilityFragment"
560
        android:label="@string/preferences_accessibility" />
Emily Kager's avatar
Emily Kager committed
561
562
    <fragment
        android:id="@+id/accountSettingsFragment"
563
        android:name="org.mozilla.fenix.settings.account.AccountSettingsFragment"
564
565
566
567
568
        android:label="@string/preferences_account_settings">
        <action
            android:id="@+id/action_accountSettingsFragment_to_signOutFragment"
            app:destination="@id/signOutFragment" />
    </fragment>
569

570
    <fragment
571
        android:id="@+id/turnOnSyncFragment"
572
        android:name="org.mozilla.fenix.settings.account.TurnOnSyncFragment"
573
        android:label="@string/preferences_sync">
574
575
        <argument
            android:name="padSnackbar"
ekager's avatar
ekager committed
576
577
            android:defaultValue="false"
            app:argType="boolean" />
578
        <action
579
580
            android:id="@+id/action_turnOnSyncFragment_to_pairFragment"
            app:destination="@id/pairFragment" />
581
582
583
584
585
    </fragment>

    <fragment
        android:id="@+id/pairFragment"
        android:name="org.mozilla.fenix.settings.PairFragment"
586
        android:label="@string/preferences_sync" />
587

588
589
    <fragment
        android:id="@+id/aboutFragment"
590
        android:name="org.mozilla.fenix.settings.about.AboutFragment" />
591
592
    <fragment
        android:id="@+id/secretSettingsPreference"
593
        android:name="org.mozilla.fenix.settings.SecretSettingsFragment"
594
        android:label="@string/preferences_debug_settings" />
Emily Kager's avatar
Emily Kager committed
595
596
    <fragment
        android:id="@+id/crashReporterFragment"
ekager's avatar
ekager committed
597
        android:name="org.mozilla.fenix.crashes.CrashReporterFragment">
Emily Kager's avatar
Emily Kager committed
598
599
600
        <argument
            android:name="crashIntent"
            app:argType="android.content.Intent" />
601
    </fragment>
Emily Kager's avatar
Emily Kager committed
602
    <fragment
603
604
605
        android:id="@+id/customizationFragment"
        android:name="org.mozilla.fenix.settings.CustomizationFragment"
        android:label="@string/preferences_customize" />
606
607
608
609
    <fragment
        android:id="@+id/privateBrowsingFragment"
        android:name="org.mozilla.fenix.settings.PrivateBrowsingFragment"
        android:label="@string/preferences_private_browsing_options" />
610
611
    <fragment
        android:id="@+id/trackingProtectionFragment"
ekager's avatar
ekager committed
612
        android:name="org.mozilla.fenix.settings.TrackingProtectionFragment">
613
614
        <action
            android:id="@+id/action_trackingProtectionFragment_to_exceptionsFragment"
615
            app:destination="@id/trackingProtectionExceptionsFragment"
616
617
618
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
619
            app:popExitAnim="@anim/slide_out_right" />
620
621
        <action
            android:id="@+id/action_trackingProtectionFragment_to_trackingProtectionBlockingFragment"
622
            app:destination="@id/trackingProtectionBlockingFragment"
623
624
625
            app:enterAnim="@anim/slide_in_right"
            app:exitAnim="@anim/slide_out_left"
            app:popEnterAnim="@anim/slide_in_left"
626
            app:popExitAnim="@anim/slide_out_right" />
627
    </fragment>
628
629
    <fragment
        android:id="@+id/deleteBrowsingDataFragment"
630
        android:name="org.mozilla.fenix.settings.deletebrowsingdata.DeleteBrowsingDataFragment"
Jeff Boek's avatar
Jeff Boek committed
631
        android:label="@string/preferences_delete_browsing_data" />
632
    <fragment
633
        android:id="@+id/trackingProtectionExceptionsFragment"
634
        android:name="org.mozilla.fenix.exceptions.trackingprotection.TrackingProtectionExceptionsFragment"
635
        android:label="@string/preference_exceptions" />
636
    <dialog
637
638
        android:id="@+id/collectionCreationFragment"
        android:name="org.mozilla.fenix.collections.CollectionCreationFragment"
ekager's avatar
ekager committed
639
        tools:layout="@layout/fragment_create_collection">
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
        <argument
            android:name="tabIds"
            android:defaultValue="@null"
            app:argType="string[]"
            app:nullable="true" />
        <argument
            android:name="selectedTabIds"
            android:defaultValue="@null"
            app:argType="string[]"
            app:nullable="true" />
        <!-- nav_graph does not allow nullable Longs, so this defaults to -1 -->
        <argument
            android:name="selectedTabCollectionId"
            android:defaultValue="-1L"
            app:argType="long" />
        <argument
            android:name="saveCollectionStep"
            app:argType="org.mozilla.fenix.collections.SaveCollectionStep"
            app:nullable="false" />
    </dialog>
660

661
    <dialog
ekager's avatar
ekager committed
662
663
664
        android:id="@+id/createShortcutFragment"
        android:name="org.mozilla.fenix.shortcut.CreateShortcutFragment"
        tools:layout="@layout/fragment_create_shortcut" />
665
    <dialog
666
667
668
        android:id="@+id/pwaOnboardingDialogFragment"
        android:name="org.mozilla.fenix.shortcut.PwaOnboardingDialogFragment"
        tools:layout="@layout/fragment_pwa_onboarding" />
669

670
671
672
    <dialog
        android:id="@+id/shareFragment"
        android:name="org.mozilla.fenix.share.ShareFragment"
673
        tools:layout="@layout/fragment_share">
674
        <argument
675
676
            android:name="data"
            app:argType="mozilla.components.concept.engine.prompt.ShareData[]" />
677
        <argument
678
            android:name="showPage"
ekager's avatar
ekager committed
679
680
            android:defaultValue="false"
            app:argType="boolean" />
681
682
683
        <action
            android:id="@+id/action_shareFragment_to_addNewDeviceFragment"
            app:destination="@id/addNewDeviceFragment" />
684
        <argument
ekager's avatar
ekager committed
685
686
687
688
            android:name="sessionId"
            android:defaultValue="null"
            app:argType="string"
            app:nullable="true" />
689
690
691
692
693
        <argument
            android:name="shareSubject"
            android:defaultValue="@null"
            app:argType="string"
            app:nullable="true" />
694
    </dialog>
695
696
    <dialog
        android:id="@+id/quickSettingsSheetDialogFragment"
697
        android:name="org.mozilla.fenix.settings.quicksettings.QuickSettingsSheetDialogFragment">
698
699
700
        <argument
            android:name="sessionId"
            app:argType="string" />
701
702
703
        <argument
            android:name="title"
            app:argType="string" />
704
705
706
707
708
709
710
711
712
713
714
715
        <argument
            android:name="url"
            app:argType="string" />
        <argument
            android:name="isSecured"
            app:argType="boolean" />
        <argument
            android:name="sitePermissions"
            app:argType="mozilla.components.feature.sitepermissions.SitePermissions"
            app:nullable="true" />
        <argument
            android:name="gravity"
Emily Kager's avatar
Emily Kager committed
716
717
            android:defaultValue="80"
            app:argType="integer" />
Kate Glazko's avatar
Kate Glazko committed
718
719
720
721
        <argument
            android:name="certificateName"
            android:defaultValue=" "
            app:argType="string" />
722
    </dialog>
723
724
    <fragment
        android:id="@+id/accountProblemFragment"
725
        android:name="org.mozilla.fenix.settings.account.AccountProblemFragment">
726
727
728
        <action
            android:id="@+id/action_accountProblemFragment_to_signOutFragment"
            app:destination="@id/signOutFragment" />
729
    </fragment>
730
731
    <dialog
        android:id="@+id/signOutFragment"
732
        android:name="org.mozilla.fenix.settings.account.SignOutFragment" />
733
734
    <dialog
        android:id="@+id/trackingProtectionPanelDialogFragment"
ekager's avatar
ekager committed
735
        android:name="org.mozilla.fenix.trackingprotection.TrackingProtectionPanelDialogFragment">
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
        <argument
            android:name="sessionId"
            app:argType="string" />
        <argument
            android:name="url"
            app:argType="string" />
        <argument
            android:name="trackingProtectionEnabled"
            app:argType="boolean" />
        <argument
            android:name="gravity"
            android:defaultValue="80"
            app:argType="integer" />
    </dialog>
    <fragment
        android:id="@+id/trackingProtectionBlockingFragment"
752
753
        android:name="org.mozilla.fenix.trackingprotection.TrackingProtectionBlockingFragment"
        tools:layout="@layout/fragment_tracking_protection_blocking">
754
        <argument
mcarare's avatar
mcarare committed
755
            android:name="protectionMode"
756
            app:argType="org.mozilla.fenix.trackingprotection.TrackingProtectionMode" />
757
    </fragment>
758
759
    <fragment
        android:id="@+id/deleteBrowsingDataOnQuitFragment"
ekager's avatar
ekager committed
760
        android:name="org.mozilla.fenix.settings.deletebrowsingdata.DeleteBrowsingDataOnQuitFragment" />
761
762
763

    <fragment
        android:id="@+id/addNewDeviceFragment"
ekager's avatar
ekager committed
764
        android:name="org.mozilla.fenix.share.AddNewDeviceFragment" />
765
766
    <fragment
        android:id="@+id/localeSettingsFragment"
ekager's avatar
ekager committed
767
        android:name="org.mozilla.fenix.settings.advanced.LocaleSettingsFragment" />
768
769
    <fragment
        android:id="@+id/saveLoginSettingFragment"
770
        android:name="org.mozilla.fenix.settings.logins.fragment.SavedLoginsSettingFragment"
771
        android:label="SaveLoginSettingFragment" />
Gabriel Luong's avatar
Gabriel Luong committed
772
773
774
775
776
777
778
779
780
    <fragment
        android:id="@+id/webExtensionActionPopupFragment"
        android:name="org.mozilla.fenix.addons.WebExtensionActionPopupFragment">
        <argument
            android:name="webExtensionId"
            app:argType="string" />
        <argument
            android:name="webExtensionTitle"
            app:argType="string"
781
            app:nullable="true" />
Gabriel Luong's avatar
Gabriel Luong committed
782
    </fragment>
783
784
785
    <dialog
        android:id="@+id/tabHistoryDialogFragment"
        android:name="org.mozilla.fenix.tabhistory.TabHistoryDialogFragment" />
Tiger Oakes's avatar
Tiger Oakes committed
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918

    <navigation android:id="@+id/site_permissions_exceptions_graph"
        app:startDestination="@id/sitePermissionsExceptionsFragment">

        <fragment
            android:id="@+id/sitePermissionsExceptionsFragment"
            android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsExceptionsFragment"
            android:label="@string/preference_exceptions"
            tools:layout="@layout/fragment_site_permissions_exceptions">
            <action
                android:id="@+id/action_site_permissions_to_exceptions_to_site_permissions_details"
                app:destination="@id/sitePermissionsDetailsExceptionsFragment"
                app:popUpTo="@+id/sitePermissionsExceptionsFragment" />
        </fragment>

        <fragment
            android:id="@+id/sitePermissionsManageExceptionsPhoneFeatureFragment"
            android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsManageExceptionsPhoneFeatureFragment"
            tools:layout="@layout/fragment_manage_site_permissions_feature_phone">
            <argument
                android:name="phoneFeature"
                app:argType="org.mozilla.fenix.settings.PhoneFeature" />
            <argument
                android:name="sitePermissions"
                app:argType="mozilla.components.feature.sitepermissions.SitePermissions" />
        </fragment>

        <fragment
            android:id="@+id/sitePermissionsDetailsExceptionsFragment"
            android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsDetailsExceptionsFragment">
            <action
                android:id="@+id/action_site_permissions_to_exceptions_to_manage_phone_feature"
                app:destination="@id/sitePermissionsManageExceptionsPhoneFeatureFragment"
                app:popUpTo="@+id/sitePermissionsDetailsExceptionsFragment" />
            <argument
                android:name="sitePermissions"
                app:argType="mozilla.components.feature.sitepermissions.SitePermissions" />
        </fragment>
    </navigation>

    <navigation android:id="@+id/addons_management_graph"
        app:startDestination="@id/addonsManagementFragment">
        <fragment
            android:id="@+id/addonsManagementFragment"
            android:name="org.mozilla.fenix.addons.AddonsManagementFragment"
            tools:layout="@layout/fragment_add_ons_management">
            <action
                android:id="@+id/action_addonsManagementFragment_to_addonDetailsFragment"
                app:destination="@id/addonDetailsFragment" />
            <action
                android:id="@+id/action_addonsManagementFragment_to_installedAddonDetails"
                app:destination="@id/installedAddonDetailsFragment" />
            <action
                android:id="@+id/action_addonsManagementFragment_to_notYetSupportedAddonFragment"
                app:destination="@id/notYetSupportedAddonFragment" />
        </fragment>
        <fragment
            android:id="@+id/installedAddonDetailsFragment"
            android:name="org.mozilla.fenix.addons.InstalledAddonDetailsFragment"
            tools:layout="@layout/fragment_installed_add_on_details">
            <action
                android:id="@+id/action_installedAddonFragment_to_addonInternalSettingsFragment"
                app:destination="@id/addonInternalSettingsFragment" />
            <action
                android:id="@+id/action_installedAddonFragment_to_addonDetailsFragment"
                app:destination="@id/addonDetailsFragment" />
            <action
                android:id="@+id/action_installedAddonFragment_to_addonPermissionsDetailsFragment"
                app:destination="@id/addonPermissionsDetailFragment" />
            <argument
                android:name="addon"
                app:argType="mozilla.components.feature.addons.Addon" />
        </fragment>
        <fragment
            android:id="@+id/notYetSupportedAddonFragment"
            android:name="org.mozilla.fenix.addons.NotYetSupportedAddonFragment"
            tools:layout="@layout/fragment_not_yet_supported_addons">
            <argument
                android:name="addons"
                app:argType="mozilla.components.feature.addons.Addon[]" />
        </fragment>
        <fragment
            android:id="@+id/addonPermissionsDetailFragment"
            android:name="org.mozilla.fenix.addons.AddonPermissionsDetailsFragment"
            tools:layout="@layout/fragment_add_on_permissions">
            <argument
                android:name="addon"
                app:argType="mozilla.components.feature.addons.Addon" />
        </fragment>
        <fragment
            android:id="@+id/addonInternalSettingsFragment"
            android:name="org.mozilla.fenix.addons.AddonInternalSettingsFragment"
            tools:layout="@layout/fragment_add_on_internal_settings">
            <argument
                android:name="addon"
                app:argType="mozilla.components.feature.addons.Addon" />
        </fragment>
        <fragment
            android:id="@+id/addonDetailsFragment"
            android:name="org.mozilla.fenix.addons.AddonDetailsFragment"
            tools:layout="@layout/fragment_add_on_details">
            <argument
                android:name="addon"
                app:argType="mozilla.components.feature.addons.Addon" />
        </fragment>
    </navigation>

    <navigation android:id="@+id/search_engine_graph"
        app:startDestination="@id/searchEngineFragment">
        <fragment
            android:id="@+id/searchEngineFragment"
            android:name="org.mozilla.fenix.settings.search.SearchEngineFragment"
            android:label="@string/preferences_search">
            <action
                android:id="@+id/action_searchEngineFragment_to_addSearchEngineFragment"
                app:destination="@+id/addSearchEngineFragment" />
            <action
                android:id="@+id/action_searchEngineFragment_to_editCustomSearchEngineFragment"
                app:destination="@+id/editCustomSearchEngineFragment" />
        </fragment>
        <fragment
            android:id="@+id/addSearchEngineFragment"
            android:name="org.mozilla.fenix.settings.search.AddSearchEngineFragment"
            tools:layout="@layout/fragment_add_search_engine" />
        <fragment
            android:id="@+id/editCustomSearchEngineFragment"
            android:name="org.mozilla.fenix.settings.search.EditCustomSearchEngineFragment"
            tools:layout="@layout/fragment_add_search_engine">
            <argument
                android:name="searchEngineIdentifier"
                app:argType="string" />
        </fragment>
    </navigation>
Tiger Oakes's avatar
Tiger Oakes committed
919
</navigation>