nav_graph.xml 29 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

8
9
    <action
        android:id="@+id/action_global_browser"
10
11
12
        app:destination="@id/browserFragment"
        app:popUpTo="@id/nav_graph"
        app:popUpToInclusive="true" />
13

Tiger Oakes's avatar
Tiger Oakes committed
14
15
16
17
18
19
    <action
        android:id="@+id/action_global_external_app_browser"
        app:destination="@id/externalAppBrowserFragment"
        app:popUpTo="@id/nav_graph"
        app:popUpToInclusive="true" />

Yeon Taek Jeong's avatar
Yeon Taek Jeong committed
20
21
22
23
    <action
        android:id="@+id/action_global_search"
        app:destination="@id/searchFragment"
        app:popUpTo="@id/nav_graph"
24
        app:popUpToInclusive="true" />
Yeon Taek Jeong's avatar
Yeon Taek Jeong committed
25

26
    <action
Emily Kager's avatar
Emily Kager committed
27
28
        android:id="@+id/action_global_crash_reporter"
        app:destination="@id/crashReporterFragment" />
29

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

Tiger Oakes's avatar
Tiger Oakes committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    <action
        android:id="@+id/action_global_settingsFragment"
        app:destination="@id/settingsFragment" />

    <action
        android:id="@+id/action_global_searchEngineFragment"
        app:destination="@id/searchEngineFragment" />

    <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_homeFragment"
        app:destination="@id/homeFragment" />

54
55
56
57
    <fragment
        android:id="@+id/homeFragment"
        android:name="org.mozilla.fenix.home.HomeFragment"
        tools:layout="@layout/fragment_home">
58
59
60
        <action
            android:id="@+id/action_homeFragment_to_turnOnSyncFragment"
            app:destination="@+id/turnOnSyncFragment" />
61
62
        <action
            android:id="@+id/action_homeFragment_to_searchFragment"
63
64
65
66
67
            app:destination="@id/searchFragment"
            app:enterAnim="@anim/fade_in"
            app:exitAnim="@anim/fade_out"
            app:popEnterAnim="@anim/fade_in"
            app:popExitAnim="@anim/fade_out" />
68
69
        <action
            android:id="@+id/action_homeFragment_to_browserFragment"
70
            app:destination="@id/browserFragment"
71
            app:exitAnim="@anim/fade_out"
72
            app:popEnterAnim="@anim/fade_in" />
73
        <action
74
75
            android:id="@+id/action_homeFragment_to_libraryFragment"
            app:destination="@id/libraryFragment" />
76
77
78
79
80
81
        <action
            android:id="@+id/action_homeFragment_to_bookmarksFragment"
            app:destination="@id/bookmarkFragment" />
        <action
            android:id="@+id/action_homeFragment_to_historyFragment"
            app:destination="@id/historyFragment" />
82
83
84
        <action
            android:id="@+id/action_homeFragment_to_settingsFragment"
            app:destination="@id/settingsFragment" />
85
86
        <action
            android:id="@+id/action_homeFragment_to_createCollectionFragment"
87
            app:destination="@id/collectionCreationFragment" />
88
89
90
        <action
            android:id="@+id/action_homeFragment_to_shareFragment"
            app:destination="@id/shareFragment" />
91
    </fragment>
92

93
94
95
96
97
98
99
100
    <fragment
        android:id="@+id/searchFragment"
        android:name="org.mozilla.fenix.search.SearchFragment"
        android:label="fragment_search"
        tools:layout="@layout/fragment_search">
        <action
            android:id="@+id/action_searchFragment_to_browserFragment"
            app:destination="@id/browserFragment"
101
102
            app:popUpTo="@id/searchFragment"
            app:popUpToInclusive="true" />
Emily Kager's avatar
Emily Kager committed
103
104
105
106
107
108
109
110
        <argument
            android:name="session_id"
            app:argType="string"
            app:nullable="true" />
        <action
            android:id="@+id/action_searchFragment_to_searchEngineFragment"
            app:destination="@id/searchEngineFragment"
            app:popUpTo="@+id/searchFragment" />
111
112
        <argument
            android:name="pastedText"
113
            android:defaultValue="@null"
114
            app:argType="string"
115
            app:nullable="true" />
116
    </fragment>
117

118
119
    <fragment
        android:id="@+id/SitePermissionsManagePhoneFeature"
120
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsManagePhoneFeatureFragment"
121
122
123
        tools:layout="@layout/fragment_manage_site_permissions_feature_phone">
        <argument
            android:name="permission"
Emily Kager's avatar
Emily Kager committed
124
            app:argType="integer" />
125
126
    </fragment>

127
128
    <fragment
        android:id="@+id/sitePermissionsExceptionsFragment"
129
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsExceptionsFragment"
130
131
132
133
134
        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"
Emily Kager's avatar
Emily Kager committed
135
            app:popUpTo="@+id/sitePermissionsExceptionsFragment" />
136
137
138
139
    </fragment>

    <fragment
        android:id="@+id/sitePermissionsDetailsExceptionsFragment"
140
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsDetailsExceptionsFragment"
141
142
143
144
        tools:layout="@xml/site_permissions_details_exceptions_preferences">
        <action
            android:id="@+id/action_site_permissions_to_exceptions_to_manage_phone_feature"
            app:destination="@id/sitePermissionsManageExceptionsPhoneFeatureFragment"
Emily Kager's avatar
Emily Kager committed
145
146
147
148
            app:popUpTo="@+id/sitePermissionsDetailsExceptionsFragment" />
        <argument
            android:name="sitePermissions"
            app:argType="mozilla.components.feature.sitepermissions.SitePermissions" />
149
150
151
152
    </fragment>

    <fragment
        android:id="@+id/sitePermissionsManageExceptionsPhoneFeatureFragment"
153
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsManageExceptionsPhoneFeatureFragment"
154
155
156
        tools:layout="@layout/fragment_manage_site_permissions_feature_phone">
        <argument
            android:name="phoneFeatureId"
Emily Kager's avatar
Emily Kager committed
157
158
159
160
            app:argType="integer" />
        <argument
            android:name="sitePermissions"
            app:argType="mozilla.components.feature.sitepermissions.SitePermissions" />
161
162
    </fragment>

163
164
165
166
    <fragment
        android:id="@+id/browserFragment"
        android:name="org.mozilla.fenix.browser.BrowserFragment"
        tools:layout="@layout/fragment_browser">
167
        <action
168
            android:id="@+id/action_browserFragment_to_homeFragment"
169
            app:destination="@id/homeFragment" />
170
171
172
        <action
            android:id="@+id/action_browserFragment_to_searchFragment"
            app:destination="@id/searchFragment" />
173
        <argument
174
            android:name="activeSessionId"
175
176
177
178
179
            app:argType="string"
            app:nullable="true" />
        <action
            android:id="@+id/action_browserFragment_to_settingsFragment"
            app:destination="@id/settingsFragment" />
180
181
182
        <action
            android:id="@+id/action_browserFragment_to_libraryFragment"
            app:destination="@id/libraryFragment" />
183
184
185
        <action
            android:id="@+id/action_browserFragment_to_bookmarkEditFragment"
            app:destination="@id/bookmarkEditFragment" />
186
187
        <action
            android:id="@+id/action_browserFragment_to_createCollectionFragment"
188
            app:destination="@id/collectionCreationFragment" />
189
        <action
ekager's avatar
ekager committed
190
191
            android:id="@+id/action_browserFragment_to_createShortcutFragment"
            app:destination="@id/createShortcutFragment" />
192
193
194
        <action
            android:id="@+id/action_browserFragment_to_shareFragment"
            app:destination="@id/shareFragment" />
195
196
197
        <action
            android:id="@+id/action_browserFragment_to_quickSettingsSheetDialogFragment"
            app:destination="@id/quickSettingsSheetDialogFragment" />
198
199
200
        <action
            android:id="@+id/action_browserFragment_to_trackingProtectionPanelDialogFragment"
            app:destination="@id/trackingProtectionPanelDialogFragment" />
201
    </fragment>
202

Tiger Oakes's avatar
Tiger Oakes committed
203
    <fragment
204
205
206
        android:id="@+id/externalAppBrowserFragment"
        android:name="org.mozilla.fenix.customtabs.ExternalAppBrowserFragment"
        tools:layout="@layout/fragment_browser">
ekager's avatar
ekager committed
207
208
209
210
211
212
213
214
        <argument
            android:name="activeSessionId"
            app:argType="string"
            app:nullable="true" />
        <argument
            android:name="webAppManifest"
            app:argType="string"
            app:nullable="true" />
215
216
217
        <action
            android:id="@+id/action_externalAppBrowserFragment_to_shareFragment"
            app:destination="@id/shareFragment" />
Tiger Oakes's avatar
Tiger Oakes committed
218
        <action
219
220
            android:id="@+id/action_externalAppBrowserFragment_to_quickSettingsSheetDialogFragment"
            app:destination="@id/quickSettingsSheetDialogFragment" />
Tiger Oakes's avatar
Tiger Oakes committed
221
        <action
222
223
            android:id="@+id/action_externalAppBrowserFragment_to_trackingProtectionPanelDialogFragment"
            app:destination="@id/trackingProtectionPanelDialogFragment" />
Tiger Oakes's avatar
Tiger Oakes committed
224
225
    </fragment>

226
227
228
229
    <fragment
        android:id="@+id/libraryFragment"
        android:name="org.mozilla.fenix.library.LibraryFragment"
        android:label="@string/library_title"
230
231
232
233
        tools:layout="@layout/fragment_library">
        <action
            android:id="@+id/action_libraryFragment_to_historyFragment"
            app:destination="@+id/historyFragment" />
234
235
236
        <action
            android:id="@+id/action_libraryFragment_to_bookmarksFragment"
            app:destination="@+id/bookmarkFragment" />
237
238
239
240
241
242
    </fragment>

    <fragment
        android:id="@+id/historyFragment"
        android:name="org.mozilla.fenix.library.history.HistoryFragment"
        android:label="@string/library_history"
Emily Kager's avatar
Emily Kager committed
243
244
245
246
247
248
249
        tools:layout="@layout/fragment_history">
        <action
            android:id="@+id/action_historyFragment_to_browserFragment"
            app:destination="@id/browserFragment" />
        <action
            android:id="@+id/action_historyFragment_to_homeFragment"
            app:destination="@id/homeFragment" />
250
251
252
        <action
            android:id="@+id/action_historyFragment_to_shareFragment"
            app:destination="@id/shareFragment" />
253
    </fragment>
254

255
256
257
258
259
260
261
    <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" />
Emily Kager's avatar
Emily Kager committed
262
263
        <action
            android:id="@+id/action_bookmarkFragment_to_browserFragment"
264
            app:destination="@id/browserFragment" />
265
266
267
        <action
            android:id="@+id/action_bookmarkFragment_self"
            app:destination="@id/bookmarkFragment" />
268
269
270
        <action
            android:id="@+id/action_bookmarkFragment_to_bookmarkEditFragment"
            app:destination="@id/bookmarkEditFragment" />
271
272
273
        <action
            android:id="@+id/action_bookmarkFragment_to_homeFragment"
            app:destination="@id/homeFragment" />
274
275
276
        <action
            android:id="@+id/action_bookmarkFragment_to_shareFragment"
            app:destination="@id/shareFragment" />
277
278
279
        <action
            android:id="@+id/action_bookmarkFragment_to_bookmarkAddFolderFragment"
            app:destination="@id/bookmarkAddFolderFragment" />
280
281
282
283
284
285
286
287
288
    </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
289
            app:nullable="false" />
290
291
292
293
294
295
296
297
298
299
300
301
302
        <action
            android:id="@+id/action_bookmarkEditFragment_to_bookmarkSelectFolderFragment"
            app:destination="@id/bookmarkSelectFolderFragment" />
    </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
303
            app:nullable="true" />
304
305
306
307
308
309
310
311
        <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
312
313
            android:defaultValue="false"
            app:argType="boolean" />
314
315
316
317
318
319
320
321
322
323
324
325
        <action
            android:id="@+id/action_bookmarkSelectFolderFragment_to_browserFragment"
            app:destination="@id/browserFragment" />
    </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" />
326
    </fragment>
327

ekager's avatar
ekager committed
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
    <fragment
        android:id="@+id/loginsFragment"
        android:name="org.mozilla.fenix.settings.LoginsFragment"
        android:label="@string/preferences_passwords_logins_and_passwords">
        <action
            android:id="@+id/action_loginsFragment_to_savedLoginsFragment"
            app:destination="@id/savedLoginsFragment" />
        <action
            android:id="@+id/action_loginsFragment_to_accountSettingsFragment"
            app:destination="@id/accountSettingsFragment" />
        <action
            android:id="@+id/action_loginsFragment_to_accountProblemFragment"
            app:destination="@id/accountProblemFragment" />
        <action
            android:id="@+id/action_loginsFragment_to_turnOnSyncFragment"
            app:destination="@id/turnOnSyncFragment" />
    </fragment>

346
347
348
    <fragment
        android:id="@+id/settingsFragment"
        android:name="org.mozilla.fenix.settings.SettingsFragment"
Emily Kager's avatar
Emily Kager committed
349
        android:label="@string/settings_title">
350
351
352
353
        <action
            android:id="@+id/action_settingsFragment_to_browserFragment"
            app:destination="@id/browserFragment"
            app:popUpTo="@+id/settingsFragment" />
Emily Kager's avatar
Emily Kager committed
354
355
356
357
358
359
360
        <action
            android:id="@+id/action_settingsFragment_to_dataChoicesFragment"
            app:destination="@id/dataChoicesFragment"
            app:popUpTo="@+id/settingsFragment" />
        <action
            android:id="@+id/action_settingsFragment_to_sitePermissionsFragment"
            app:destination="@id/sitePermissionsFragment" />
ekager's avatar
ekager committed
361
362
363
        <action
            android:id="@+id/action_settingsFragment_to_loginsFragment"
            app:destination="@id/loginsFragment" />
Emily Kager's avatar
Emily Kager committed
364
365
366
367
368
369
        <action
            android:id="@+id/action_settingsFragment_to_accessibilityFragment"
            app:destination="@id/accessibilityFragment" />
        <action
            android:id="@+id/action_settingsFragment_to_accountSettingsFragment"
            app:destination="@id/accountSettingsFragment" />
370
371
372
        <action
            android:id="@+id/action_settingsFragment_to_searchEngineFragment"
            app:destination="@id/searchEngineFragment" />
373
        <action
374
375
            android:id="@+id/action_settingsFragment_to_turnOnSyncFragment"
            app:destination="@id/turnOnSyncFragment" />
376
377
378
        <action
            android:id="@+id/action_settingsFragment_to_aboutFragment"
            app:destination="@id/aboutFragment" />
Emily Kager's avatar
Emily Kager committed
379
380
381
        <action
            android:id="@+id/action_settingsFragment_to_themeFragment"
            app:destination="@id/themeFragment" />
382
383
384
        <action
            android:id="@+id/action_settingsFragment_to_trackingProtectionFragment"
            app:destination="@id/trackingProtectionFragment" />
385
386
387
        <action
            android:id="@+id/action_settingsFragment_to_deleteBrowsingDataFragment"
            app:destination="@id/deleteBrowsingDataFragment" />
388
389
390
        <action
            android:id="@+id/action_settingsFragment_to_accountProblemFragment"
            app:destination="@id/accountProblemFragment" />
391
392
393
        <action
            android:id="@+id/action_settingsFragment_to_deleteBrowsingDataOnQuitFragment"
            app:destination="@id/deleteBrowsingDataOnQuitFragment" />
394
        <action
395
396
            android:id="@+id/action_settingsFragment_to_defaultBrowserSettingsFragment"
            app:destination="@id/defaultBrowserSettingsFragment" />
397
398
399
        <action
            android:id="@+id/action_settingsFragment_to_toolbarSettingsFragment"
            app:destination="@id/toolbarSettingsFragment" />
400
    </fragment>
401
    <fragment
Emily Kager's avatar
Emily Kager committed
402
403
        android:id="@+id/dataChoicesFragment"
        android:name="org.mozilla.fenix.settings.DataChoicesFragment"
404
        android:label="@string/preferences_data_choices" />
Emily Kager's avatar
Emily Kager committed
405
406
    <fragment
        android:id="@+id/sitePermissionsFragment"
407
        android:name="org.mozilla.fenix.settings.sitepermissions.SitePermissionsFragment"
Emily Kager's avatar
Emily Kager committed
408
        android:label="@string/preferences_site_permissions">
409
410
411
        <action
            android:id="@+id/action_site_permissions_to_manage_phone_features"
            app:destination="@id/SitePermissionsManagePhoneFeature"
Emily Kager's avatar
Emily Kager committed
412
            app:popUpTo="@id/sitePermissionsFragment" />
413
414
415
        <action
            android:id="@+id/action_site_permissions_to_exceptions"
            app:destination="@id/sitePermissionsExceptionsFragment"
Emily Kager's avatar
Emily Kager committed
416
            app:popUpTo="@id/sitePermissionsFragment" />
417
418
    </fragment>

Emily Kager's avatar
Emily Kager committed
419
420
421
    <fragment
        android:id="@+id/accessibilityFragment"
        android:name="org.mozilla.fenix.settings.AccessibilityFragment"
422
        android:label="@string/preferences_accessibility" />
Emily Kager's avatar
Emily Kager committed
423
424
    <fragment
        android:id="@+id/accountSettingsFragment"
425
        android:name="org.mozilla.fenix.settings.account.AccountSettingsFragment"
426
427
428
429
430
        android:label="@string/preferences_account_settings">
        <action
            android:id="@+id/action_accountSettingsFragment_to_signOutFragment"
            app:destination="@id/signOutFragment" />
    </fragment>
431
432
    <fragment
        android:id="@+id/searchEngineFragment"
433
        android:name="org.mozilla.fenix.settings.search.SearchEngineFragment"
Jeff Boek's avatar
Jeff Boek committed
434
435
436
437
438
439
440
441
        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>
442

443
    <fragment
444
        android:id="@+id/turnOnSyncFragment"
445
        android:name="org.mozilla.fenix.settings.account.TurnOnSyncFragment"
446
        android:label="@string/preferences_sync">
447
448
449
450
        <argument
            android:name="padSnackbar"
            app:argType="boolean"
            android:defaultValue="false" />
451
        <action
452
453
            android:id="@+id/action_turnOnSyncFragment_to_pairFragment"
            app:destination="@id/pairFragment" />
454
455
456
457
458
    </fragment>

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

461
462
    <fragment
        android:id="@+id/aboutFragment"
463
        android:name="org.mozilla.fenix.settings.about.AboutFragment"
464
        android:label="AboutFragment">
465
466
467
468
        <action
            android:id="@+id/action_aboutFragment_to_browserFragment"
            app:destination="@id/browserFragment" />
    </fragment>
Emily Kager's avatar
Emily Kager committed
469
470
471
472
473
474
    <fragment
        android:id="@+id/crashReporterFragment"
        android:name="org.mozilla.fenix.crashes.CrashReporterFragment"
        android:label="CrashReporterFragment">
        <action
            android:id="@+id/action_crashReporterFragment_to_homeFragment"
475
            app:destination="@id/homeFragment"
476
            app:popUpTo="@id/nav_graph" />
Emily Kager's avatar
Emily Kager committed
477
478
479
        <argument
            android:name="crashIntent"
            app:argType="android.content.Intent" />
480
    </fragment>
Emily Kager's avatar
Emily Kager committed
481
482
483
    <fragment
        android:id="@+id/themeFragment"
        android:name="org.mozilla.fenix.settings.ThemeFragment"
484
        android:label="@string/preferences_theme" />
485
486
487
    <fragment
        android:id="@+id/trackingProtectionFragment"
        android:name="org.mozilla.fenix.settings.TrackingProtectionFragment"
Emily Kager's avatar
Emily Kager committed
488
        android:label="TrackingProtectionFragment">
489
490
491
        <action
            android:id="@+id/action_trackingProtectionFragment_to_exceptionsFragment"
            app:destination="@id/exceptionsFragment" />
492
493
494
495
496
497
        <action
            android:id="@+id/action_trackingProtectionFragment_to_trackingProtectionBlockingFragment"
            app:destination="@id/trackingProtectionBlockingFragment" />
        <action
            android:id="@+id/action_trackingProtectionFragment_to_browserFragment"
            app:destination="@id/browserFragment" />
498
    </fragment>
499
500
    <fragment
        android:id="@+id/deleteBrowsingDataFragment"
501
        android:name="org.mozilla.fenix.settings.deletebrowsingdata.DeleteBrowsingDataFragment"
502
        android:label="@string/preferences_delete_browsing_data" />
503
504
505
    <fragment
        android:id="@+id/exceptionsFragment"
        android:name="org.mozilla.fenix.exceptions.ExceptionsFragment"
506
507
508
509
510
511
512
        android:label="@string/preference_exceptions">
        <action
            android:id="@+id/action_exceptionsFragment_to_browserFragment"
            app:destination="@id/browserFragment"
            app:popUpTo="@id/settingsFragment"
            app:popUpToInclusive="true" />
    </fragment>
513
    <dialog
514
515
        android:id="@+id/collectionCreationFragment"
        android:name="org.mozilla.fenix.collections.CollectionCreationFragment"
516
        android:label="fragment_create_collection"
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
        tools:layout="@layout/fragment_create_collection" >
        <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="previousFragmentId"
            app:argType="reference"
            app:nullable="false" />
        <argument
            android:name="saveCollectionStep"
            app:argType="org.mozilla.fenix.collections.SaveCollectionStep"
            app:nullable="false" />
    </dialog>
542
    <dialog
ekager's avatar
ekager committed
543
544
545
546
        android:id="@+id/createShortcutFragment"
        android:name="org.mozilla.fenix.shortcut.CreateShortcutFragment"
        android:label="fragment_create_shortcut"
        tools:layout="@layout/fragment_create_shortcut" />
547
548
549
    <dialog
        android:id="@+id/shareFragment"
        android:name="org.mozilla.fenix.share.ShareFragment"
550
        tools:layout="@layout/fragment_share">
551
        <argument
552
553
            android:name="data"
            app:argType="mozilla.components.concept.engine.prompt.ShareData[]" />
554
        <argument
555
556
557
            android:name="showPage"
            app:argType="boolean"
            android:defaultValue="false" />
558
559
560
561
        <action
            android:id="@+id/action_shareFragment_to_turnOnSyncFragment"
            app:destination="@+id/turnOnSyncFragment"
            app:popUpTo="@id/shareFragment"
562
563
            app:popUpToInclusive="true" >
        </action>
564
565
566
        <action
            android:id="@+id/action_shareFragment_to_accountProblemFragment"
            app:destination="@id/accountProblemFragment" />
567
568
569
        <action
            android:id="@+id/action_shareFragment_to_addNewDeviceFragment"
            app:destination="@id/addNewDeviceFragment" />
570
571
572
573
574
        <argument
                android:name="sessionId"
                app:argType="string"
                app:nullable="true"
                android:defaultValue="null" />
575
    </dialog>
576
577
    <dialog
        android:id="@+id/quickSettingsSheetDialogFragment"
578
        android:name="org.mozilla.fenix.settings.quicksettings.QuickSettingsSheetDialogFragment">
579
580
581
        <argument
            android:name="sessionId"
            app:argType="string" />
582
583
584
585
586
587
588
589
590
591
592
593
        <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
594
595
            android:defaultValue="80"
            app:argType="integer" />
596
    </dialog>
597
598
    <fragment
        android:id="@+id/accountProblemFragment"
599
        android:name="org.mozilla.fenix.settings.account.AccountProblemFragment">
600
601
602
        <action
            android:id="@+id/action_accountProblemFragment_to_signOutFragment"
            app:destination="@id/signOutFragment" />
603
    </fragment>
604
605
    <dialog
        android:id="@+id/signOutFragment"
606
        android:name="org.mozilla.fenix.settings.account.SignOutFragment" />
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
    <action
        android:id="@+id/action_global_shareFragment"
        app:destination="@id/shareFragment" />
    <dialog
        android:id="@+id/trackingProtectionPanelDialogFragment"
        android:name="org.mozilla.fenix.trackingprotection.TrackingProtectionPanelDialogFragment"
        android:label="TrackingProtectionPanelDialogFragment">
        <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" />
        <action
            android:id="@+id/action_trackingProtectionPanelDialogFragment_to_trackingProtectionFragment"
            app:destination="@id/trackingProtectionFragment" />
    </dialog>
    <fragment
        android:id="@+id/trackingProtectionBlockingFragment"
        android:name="org.mozilla.fenix.trackingprotection.TrackingProtectionBlockingFragment"
        android:label="TrackingProtectionBlockingFragment">
        <argument
            android:name="strictMode"
            app:argType="boolean" />
    </fragment>
639
640
    <fragment
        android:id="@+id/deleteBrowsingDataOnQuitFragment"
641
        android:name="org.mozilla.fenix.settings.deletebrowsingdata.DeleteBrowsingDataOnQuitFragment"
642
        android:label="DeleteBrowsingDataOnQuitFragment" />
643
644
645
646
647

    <fragment
        android:id="@+id/addNewDeviceFragment"
        android:name="org.mozilla.fenix.share.AddNewDeviceFragment"
        android:label="AddNewDeviceFragment" />
648
    <fragment
649
        android:id="@+id/defaultBrowserSettingsFragment"
650
        android:name="org.mozilla.fenix.settings.DefaultBrowserSettingsFragment"
651
652
653
654
655
        android:label="DefaultBrowserSettingsFragment">
        <action
            android:id="@+id/action_defaultBrowserSettingsFragment_to_browserFragment"
            app:destination="@id/browserFragment" />
    </fragment>
ekager's avatar
ekager committed
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
    <fragment
        android:id="@+id/savedLoginsFragment"
        android:name="org.mozilla.fenix.logins.SavedLoginsFragment"
        android:label="fragment_saved_logins"
        tools:layout="@layout/fragment_saved_logins">
        <action
            android:id="@+id/action_savedLoginsFragment_to_savedLoginSiteInfoFragment"
            app:destination="@id/savedLoginSiteInfoFragment" />
    </fragment>
    <fragment
        android:id="@+id/savedLoginSiteInfoFragment"
        android:name="org.mozilla.fenix.logins.SavedLoginSiteInfoFragment"
        android:label="fragment_saved_login_site_info"
        tools:layout="@layout/fragment_saved_login_site_info">
        <argument
            android:name="savedLoginItem"
            app:argType="org.mozilla.fenix.logins.SavedLoginsItem" />
    </fragment>
Jeff Boek's avatar
Jeff Boek committed
674
675
676
677
678
679
680
681
682
683
684
685
    <fragment
        android:id="@+id/addSearchEngineFragment"
        android:name="org.mozilla.fenix.settings.search.AddSearchEngineFragment"
        android:label="AddSearchEngineFragment" />
    <fragment
        android:id="@+id/editCustomSearchEngineFragment"
        android:name="org.mozilla.fenix.settings.search.EditCustomSearchEngineFragment"
        android:label="EditCustomSearchEngineFragment">
        <argument
            android:name="searchEngineIdentifier"
            app:argType="string" />
    </fragment>
686
687
688
689
    <fragment
        android:id="@+id/toolbarSettingsFragment"
        android:name="org.mozilla.fenix.settings.ToolbarSettingsFragment"
        android:label="ToolbarSettingsFragment" />
Tiger Oakes's avatar
Tiger Oakes committed
690
</navigation>