pedrovgs/Shot

Make focus consistent when taking screenshots

Open

#109 opened on May 11, 2020

 (5 comments) (0 reactions) (0 assignees)Kotlin (111 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,208 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

We've been experimenting some flakiness because of the focus at the moment of taking the screenshot. It would be nice to have some consistency out of the box.

In some project we "clear" the focus we iterate over all the views, starting from the root view, and then requestFocusFromTouch() to make it consistent. In some other projects we take a view id that will be the one that will request the focus.

Contributor guide