OSDN Git Service

Fix floating toolbar position issues.
authorAbodunrinwa Toki <toki@google.com>
Wed, 27 May 2015 19:31:01 +0000 (20:31 +0100)
committerAbodunrinwa Toki <toki@google.com>
Wed, 3 Jun 2015 19:33:49 +0000 (20:33 +0100)
commite3eb1833503c324127c621d22cbf7ac1729dbc54
tree604f0e0a0ad96b42ceccd2d1687e6b9d192bd6f4
parente7934a6576187486e6474aba28b14001afd7422c
Fix floating toolbar position issues.

This CL makes the toolbar respect a viewport specified by
the content area (calculated from the globalVisibleRect and
windowInsets). By doing this the toolbar positions
itself appropraitely avoiding the status and nav bars.

Bug: 21324303
Change-Id: I3de9e114194dd43888b7f581ef12c3f8b813b3ca
core/java/com/android/internal/widget/FloatingToolbar.java