Assigned
Status Update
Comments
vi...@google.com <vi...@google.com> #2
Same here. I have links in a local html file referencing file:///android_res/drawable/ and on all gradle build flavors using another applicationId (added suffix) the Webview only shows broken links.
This behaviour seems not to be connected solely to Android 5.0 since it occurs on Android 4.4.4 too (tested with current cyanogenmod 11 build).
This behaviour seems not to be connected solely to Android 5.0 since it occurs on Android 4.4.4 too (tested with current cyanogenmod 11 build).
Description
I suggest adding a ViewModelTest sample using the ViewModel sample in the same page;
```kotlin
// Add testing invoke statement to create saved state handles with route objects
import androidx.navigation.testing.invoke
@RunWith(RobolectricTestRunner::class)
class UserViewModelTest {
@Test
fun testUserDetailsFetchedFromUserRepository() {
val savedStateHandle = SavedStateHandle(Profile(userId = "user1234"))
val userRepository = MockUserRepository()
val userViewModel = UserViewModel(savedStateHandle, userRepository)
}
}
```