Status Update
Comments
na...@gmail.com <na...@gmail.com> #2
As temporal workaround I copied ContextCompatHelper.unwrapUiContext
with added condition if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) return context
to it. I call it before passing context to computeCurrentWindowMetrics
Description
Component used: androidx.window:window Version used: 1.2.0 Devices/Android versions reproduced on: API <30
If this is a bug in the library, we would appreciate if you could attach: Calling of
computeCurrentWindowMetrics(context)
withLocalContext.current
crashes the app with stack:The issue happens because next piece of code in
computeCurrentWindowMetrics
: