xiezefan/android-test-kit

getGlobalVisibleRect works differently on API 22

Opened this issue · 0 comments

I have a testcase where isDisplayingAtLeast works differently on API 22.

on API 22, isDisplayingAtLeast computes the view is 94% visible and on older 
APIs it is 100% visible.

The View seems to be the same size and fully visible, but 
view.getGlobalVisibleRect returns a smaller rect.

isDisplayingAtLeast should work the same across API levels.

Original issue reported on code.google.com by YogurtE...@gmail.com on 26 Jun 2015 at 3:06