commit | 693ba32b7188c7fea6fdc20eace4b8ba8186060c | [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 | 151b316dabdb69ba84358d6f78b137b1e0e7b093 | |
parent | 1e4250df552beca869aa4dfa236e788c3e1103bf [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)