suli1 / android-test-kit

Automatically exported from code.google.com/p/android-test-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getGlobalVisibleRect works differently on API 22

GoogleCodeExporter opened this issue · 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