Merge pull request #97 from TouchInstinct/feature/new-sdk-version

Upped SDK v
This commit is contained in:
Aksenov Vladimir 2019-10-30 15:48:18 +03:00 committed by GitHub
commit a56e93fde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ task clean(type: Delete) {
ext {
ext.buildScriptsDir = "$rootDir/BuildScripts"
versions = [
compileSdk : 28,
compileSdk : 29,
appcompat : '1.0.2',
androidx : '1.0.0',
material : '1.0.0',

View File

@ -67,7 +67,8 @@ class NavigationContainerFragment : Fragment() {
containerLayoutId = args.getInt(CONTAINER_LAYOUT_ID_ARG)
if (savedInstanceState == null) {
navigation.setInitialViewController(getViewControllerClass(), args.getParcelable(VIEW_CONTROLLER_STATE_ARG))
navigation.setInitialViewController(getViewControllerClass(), args.getParcelable(VIEW_CONTROLLER_STATE_ARG)
?: throw ShouldNotHappenException("Fragment state must not be null"))
}
} ?: throw ShouldNotHappenException("Fragment is not instantiable without arguments")
}