architecture-components-samples
architecture-components-samples copied to clipboard
Samples for Android Architecture Components.
I tried to use the [getOrAwaitValue](https://github.com/android/architecture-components-samples/blob/f1ec5c2f75ed2a9663f627874142942cdaec2262/LiveDataSample/app/src/test/java/com/android/example/livedatabuilder/util/LiveDataTestUtil.kt#L30) with `Flow` transformed `LiveData`, but am getting > java.lang.IllegalStateException: Cancel call cannot happen without a maybeRun **Here's what am doing** I am trying to...
In the "Navigation advanced sample" project. When you try to register new user. 1. Click register. 2. Click inside the "Name" field. Now you cannot see other fields because of...
Using handle deeplinks restarts the app to create correct backstack but to open deeplink in advance bottom navigation without restarting app. ```` fun BottomNavigationView.navigateDeeplink( navGraphIds: List, fragmentManager: FragmentManager, containerId: Int,...
First of all. Thanks for the examples. I'm using the same code exposed in the android / architecture-components-samples / GithubBrowserSample, the error happens with all devices I have tested. In...
Hello, I noticed using `NavigationUI.onNavDestinationSelected` turns the Back button into Home button, keeps the Back button icon ``` @Override public boolean onOptionsItemSelected(MenuItem item) { NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment); return...
I see an issue in the "GithubBrowserSample" sample -> move-to-new-coroutines-artifact branch-> UserRepositoryTest under test folder. I write same test for my repository using this way.But my test didn't pass. The...
When using the JetPack Navigation component, when I add a `popExitAnim` animation to the action in the `navigation_graph.xml `file, the corresponding destination Fragment's `onDestroyView` and subsequent life cycle functions will...
our error log is ``` Caused by: android.database.sqlite.SQLiteDatabaseCorruptException: file is not a database (Sqlite code 26 SQLITE_NOTADB): , while compiling: PRAGMA journal_mode, (OS error - 2:No such file or directory)...
https://github.com/android/architecture-components-samples/blob/160f148b5ea4c943028c73acd4667fd134a8674e/NavigationAdvancedSample/app/src/main/java/com/example/android/navigationadvancedsample/NavigationExtensions.kt#L114-L118
Hey guys, Is it possible to navigate to previous tab instead of navigating back to home screen every time we backPress ? example : Tab A -> Tab B ->...