commit | a89b7a8e4840e52dfda1442bcb885686680556f6 | [log] [tgz] |
---|---|---|
author | Chris Banes <chrisbanes@google.com> | Tue Jan 26 16:55:31 2016 +0000 |
committer | Chris Banes <chrisbanes@google.com> | Tue Jan 26 17:28:08 2016 +0000 |
tree | 0019dbb5e457968cadf0abbe976834f2394d900f | |
parent | f86f85cf2034f80a2a2330f041071c310e998b29 [diff] |
Fix Snackbar swipe to dismiss not working pre-v11 Multiple issues: - offsetTopAndBottom doesn't invalidate pre-v11, so ViewDragHelper now uses the ViewCompat version. - ViewCompat's offset method needs to invalidate the parent instead, since the view has moved and thus the dirty rect is larger than the view's bounds. - Fixed issue in Snackbar which meant that the view would not be removed after a swipe settle. BUG: 26768803 Change-Id: Ia9abc4884f8ffd05408135d3fc4dd1b073392a7b