closes #24306: add nav argument to open tabs tray to an initial page

This commit is contained in:
MatthewTighe 2022-03-17 11:05:48 -07:00 committed by mergify[bot]
parent 9853ca13ae
commit 9d681a9de0
2 changed files with 7 additions and 0 deletions

View File

@ -131,10 +131,12 @@ class TabsTrayFragment : AppCompatDialogFragment() {
} else {
TabsTrayState.Mode.Normal
}
val initialPage = args.page
tabsTrayStore = StoreProvider.get(this) {
TabsTrayStore(
initialState = TabsTrayState(
selectedPage = initialPage,
mode = initialMode,
focusGroupTabId = args.focusGroupTabId
),

View File

@ -162,6 +162,11 @@
app:nullable="true"
android:defaultValue="@null"
app:argType="string" />
<argument
android:name="page"
android:defaultValue="NormalTabs"
app:argType="org.mozilla.fenix.tabstray.Page"
/>
</dialog>
<fragment