When screen orientation is landscape, screenshot taken previously activity (portrait) also.
snechiporenko opened this issue · comments
Sergey Nechiporenko commented
Josef Raska commented
Hi, thank you for reporting this, sounds like a bug.
I will look into it once I got a time. What Falcon does is just taking all attached windows from WindowManager and smash them into screenshot. Probably if there is some Activity below which is not rotated it is taken to screenshot as well.
Nicolas Sagnette commented
Hi there !
It's just view visibility issue. Before add a new ViewRootData element in the result list, you can check if view is shown (line 218):
if (view == null || !view.isShown()) {
Log.e(TAG, "null View stored as root in Global window manager, skipping");
continue;
}
It works for me.
Josef Raska commented
@nsagnett Thank you very much for the suggestion. Works and was tested. I will release new version with fix soon.