Bilagi
06/13/2021, 10:38 AMActivity Results API
stable for production use?gildor
06/13/2021, 12:27 PMAdam Powell
06/13/2021, 12:43 PMBilagi
06/13/2021, 12:51 PMgildor
06/13/2021, 3:36 PMAdam Powell
06/13/2021, 3:53 PMActivity
- ComponentActivity
is trying to nudge you to use the newer API since it's easy to break the operation of the activity result APIs if you don't call super 🙂 https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:activity[…]ctivity/ComponentActivity.java;l=624?q=ComponentActivity.javaMatt Thompson
06/13/2021, 4:26 PMMatt Thompson
06/13/2021, 4:30 PMActivityResultContract
is that it is written in java so the generics do not support nullability - i.e. it’s easy to accidentally define the output type as non-null and then implement parseResult
as nullable 😢gildor
06/13/2021, 4:44 PM