Why does studio autofill generates a nullable bund...
# android
s
Why does studio autofill generates a nullable bundle for onRestoreInstanceState?
Copy code
override fun onRestoreInstanceState(savedInstanceState: Bundle?) {
        super.onRestoreInstanceState(savedInstanceState)
    }
t
It'll do this until they label it
@NotNull
in the code. If you're using support libs 27+ I believe they updated it so you'll have not null Bundle
s
Got it, fwiw, i'm on androidx1.0.0 so yeah it still is the case
t
Oh really? And you're extending
AppCompatActivity
?
s
Yup, cmd+b still takes to java version of it
l
AndroidX is not full Kotlin at all, it is Java, with Kotlin extensions if you use ktx. Do you use SDK 28+?
s
Was on 28.0.0 before migrating to AndroidX
l
@Sam
28.0.0
is not an Android SDK version
s
Oh do you meant target version?
l
compileSdk
s
that is 28