android-navigation

Recreating backstack with Android Navigation Architecture Component

丶灬走出姿态 提交于 2020-08-22 05:12:43
问题 I am trying to implement navigation to specific Detail pages of my app using PendingIntent from a notification, however I am having problems recreating the backstack from the Detail page all the way back to the start destination. I made a sample app here with a single activity and three fragments to demo this: Fragment 1 -> Fragment 2 -> Fragment 3 (start dest) <- <- From Fragment 1 (the start destination), I navigate directly to Fragment 3 using Navigation.findNavController(this, R.id.nav

Recreating backstack with Android Navigation Architecture Component

假装没事ソ 提交于 2020-08-22 05:09:28
问题 I am trying to implement navigation to specific Detail pages of my app using PendingIntent from a notification, however I am having problems recreating the backstack from the Detail page all the way back to the start destination. I made a sample app here with a single activity and three fragments to demo this: Fragment 1 -> Fragment 2 -> Fragment 3 (start dest) <- <- From Fragment 1 (the start destination), I navigate directly to Fragment 3 using Navigation.findNavController(this, R.id.nav

Fragments not added to backstack using Navigation Components

陌路散爱 提交于 2020-08-19 04:49:23
问题 Information: I'm programmatically inserting a NavHostFragment for each feature of the app. Each NavHostFragment has it's own Navigation Graph. Dagger is providing them by using a FragmentFactory specific to each feature. It's a Single Activity structure with MVVM architecture. Repo: https://github.com/mitchtabian/DaggerMultiFeature/tree/nav-component-backstack-bug checkout the branch "nav-component-backstack-bug". The Problem When navigating into the graph the fragments are not being added to