Android Navigation library deep linking: How to synthesise backstack

后端 未结 2 914
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 13:45

Using Android Architecture\'s Navigation component, I have the following navigation graph

-> [Home] -> [Articles List] -> [Specific Article]

<
2条回答
  •  灰色年华
    2021-02-05 14:25

    The documentation implies that my original solution should work.

    When a user uses the Back button from a deep link destination, they navigate back up the navigation stack just as though they entered your app from the app’s entry point.

    In addition, ianhanniballake's answer doesn't produce expected results (the deeplinked fragment is not opened).

    I have created an issue on google's tracker for both these problems: https://issuetracker.google.com/issues/79734195

提交回复
热议问题