commit | fa6cbbe15b4c2d698b20e10a28efc95e1fe8ada4 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Fri May 04 13:17:46 2018 -0700 |
committer | Tony Wickham <twickham@google.com> | Fri May 04 13:17:46 2018 -0700 |
tree | 12d18375d77a6fc25ad933fd9c2b7c59ad31fcd0 | |
parent | 4c7507571c3d744a9c507086479065bfbd24191c [diff] |
Cleanup swipe detector in case of double cancel We manually dispatch cancel when returning to the previous state in onDragEnd(), but could end in a bad state if getting a second, external cancel (e.g. by pressing home). Thus, we restore the onCancelListener after manually dispatching cancel. Bug: 79258868 Change-Id: Idc4c33cede1d8af1829a4a744b9348d379bcf8f7