jraska / Falcon

Take Android screenshots with Falcons bright eye!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When screen orientation is landscape, screenshot taken previously activity (portrait) also.

snechiporenko opened this issue · comments

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.

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.

@nsagnett Thank you very much for the suggestion. Works and was tested. I will release new version with fix soon.