commit | 31afbf7410ac28f7d80dfe6b280ca2c8d0c53a34 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Tue Jun 21 13:28:17 2016 -0700 |
committer | Ben Lin <linben@google.com> | Tue Jun 21 23:44:14 2016 +0000 |
tree | 9307624b224444d5527ec2ad5105040bd7fdff06 | |
parent | 1b4596433f3d1644f4d338a1bf791bdc8e01cf5f [diff] |
Fix context menu for empty directory/root view. Since it's not always true that there is a doc/directory given the (x, y) of the right click, I've changed the signature of right click to take in a MotionEvent object as a parameter, and make a MotionInputEvent inside the function as a check whether it's on a file/doc or on empty/blank pane. Bug: 29538570 Change-Id: I7ee960c9f556752bf314ab8cc2d94fda28194c0a (cherry picked from commit 332192dee8cb99bd2e6ef638e78d5b62ab7ecfe6)