Status Update
Comments
du...@google.com <du...@google.com> #2
This actually has nothing to do with NavHostFragment, but is the behavior of NavController's setGraph().
When you call navController.setGraph(R.navigation.navigation_graph), it stores that ID and will restore that ID automatically.
If you were to instead use:
NavInflater navInflater = new NavInflater(this, navController.getNavigatorProvider());
navController.setGraph(navInflater.inflate(R.navigation.navigation_graph));
Then NavController would not restore the graph itself and the call to restoreState() you point out would only restore the back stack state, etc. but would wait for you to call setGraph again.
You're right that the inconsistency between the two setGraph methods is concerning. We'll take a look.
When you call navController.setGraph(R.navigation.navigation_graph), it stores that ID and will restore that ID automatically.
If you were to instead use:
NavInflater navInflater = new NavInflater(this, navController.getNavigatorProvider());
navController.setGraph(navInflater.inflate(R.navigation.navigation_graph));
Then NavController would not restore the graph itself and the call to restoreState() you point out would only restore the back stack state, etc. but would wait for you to call setGraph again.
You're right that the inconsistency between the two setGraph methods is concerning. We'll take a look.
Description
Component used: room, rxjava, guava, paging
Version used: room - 2.4.0-alpha-02 (is present in 2.3.0 too) paging - 3.0.0
Devices/Android versions reproduced on: Project didn't compile. It's an compilation issue
Room Dao isn't able to return RxPagingSource or ListenableFuturePagingSource
I have attached small sample project. You can observe the issue when you build this project
It will give error in sampleDao_impl.java
incompatible types: PagingSource<Integer,String> cannot be converted to RxPagingSource<Integer,String>