Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Some things to work out before making the annotations type-use:
- Determine guidelines for type nullability in public API
- Determine rules for when type nullability can change in public API
- Confirm that intellij nullability lint works as expected for type-use nullability annotations
- Test what the impact would be on existing arrays (due to ambiguities of type-use annotations on arrays)
- Confirm usage of type-use
androidx.annotation.NonNull/Nullable
in metalava won't break anything for platform
Description
Component used: Jetpack WindowManager
Version used: 1.2.0/latest git
Devices/Android versions reproduced on: Any devices/versions
When using
WindowMetricsCalculator.getOrCreate().computeCurrentWindowMetrics(context)
, the following crash happens.This is because in this line , the origin
context
instead of the unwrapped context (unwrapUiContext(context)
) is casted toActivity
.