Commit 7dc0f89
committed
[[ Bug 19670 ]] Fix effective working screenrect on Android
This patch fixes the effective working screenrect on Android when
the status bar is hidden. Previously to determine the area not covered
by screen decorations we used `getGlobalVisibleRect`, however this only
took clipping into account and in some cases decorations do not clip the
view.
This patch uses `getWindowVisibleDisplayFrame` which is documented to tell
`you the available area where content can be placed and remain visible to
users.`1 parent 557417d commit 7dc0f89
File tree
2 files changed
+3
-2
lines changed- docs/notes
- engine/src/java/com/runrev/android
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
1221 | | - | |
1222 | | - | |
| 1221 | + | |
| 1222 | + | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| |||
0 commit comments