Will this actually compile with the import to the platform Activity extension, or is it a tooling error?
l
Leland Richardson [G]
05/04/2020, 5:10 PM
we are pushing people towards ComponentActivity since we are able to leverage lifecycles to handle things properly like state restoration, releasing references on stop, etc.
👍 1
a
Andrey Kulikov
05/04/2020, 6:04 PM
but AppCompatActivity is extending ComponentActivity so this error shouldn't be displayed as we use the proper overload, interesting
g
Gabriel Feo
05/04/2020, 6:05 PM
Yes, I'm extending AppCompatActivity
a
Andrey Kulikov
05/04/2020, 6:05 PM
anyway, we will soon remove this deprecated overload and it will only compile inside AppCompatActivity or ComponentActivity