Fixed
Status Update
Comments
wu...@google.com <wu...@google.com>
sc...@google.com <sc...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
sc...@google.com <sc...@google.com>
ap...@google.com <ap...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
pr...@google.com <pr...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.camera:camera-view:1.3.0-alpha05
ma...@gmail.com <ma...@gmail.com> #5
FYI, I noticed that passing a main thread handler (handler = Handler(Looper.getMainLooper())
) when registering the display listener, AND running handler.post { }
in onDisplayChanged
, ensures that rotation is updated to the real value.
Might be better than querying the display on every frame (if that's what you are doing).
sc...@google.com <sc...@google.com> #6
Hi this is a great feedback ! Thanks !
Actually we have changed the behavior just like what you describe (See CL inhttps://android-review.googlesource.com/2469881 ) and released in 1.3.0-alpha05.
Actually we have changed the behavior just like what you describe (See CL in
Description
When rotating devices from portrait to landscape in multi-window mode, sometimes the activity won't restart and the preview using PreviewView becomes sideway. (e.g, Samsung Z fold 2 / 3 in unfold state).
Or when rotating devices from 90 degrees directly to 270 degrees, the activity won't restart , and the issue will happen.
The issue happens only when COMPATIBLE mode is used for PreviewView.