summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewStructure.java
diff options
context:
space:
mode:
authorMady Mellor <madym@google.com>2015-06-05 09:02:55 -0700
committerMady Mellor <madym@google.com>2015-06-05 09:02:55 -0700
commite860891b1a7d4c1b581f294fa5831999caac6506 (patch)
tree3737463446e647f20f4dcbfe127d74cc44287a2e /core/java/android/view/ViewStructure.java
parent05ae9b56aec7c1a261eb84741b43e40351d20bd4 (diff)
Change stylus button press to context click in View - API review feedback
Updates all references in View's onStylusButtonPress to onContextClick as per API review feedback. Additionally listens for mouse right clicks and calls the onContextClick method for these as well for the stylus button press. Bug: 21572278 Change-Id: I5c1ee8c8f23a77d7c677b86356e89d0e4fc40056
Diffstat (limited to 'core/java/android/view/ViewStructure.java')
-rw-r--r--core/java/android/view/ViewStructure.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/view/ViewStructure.java b/core/java/android/view/ViewStructure.java
index e525474bae6c..8ceb166a92d6 100644
--- a/core/java/android/view/ViewStructure.java
+++ b/core/java/android/view/ViewStructure.java
@@ -75,10 +75,10 @@ public abstract class ViewStructure {
public abstract void setLongClickable(boolean state);
/**
- * Set the stylus button pressable state of this view, as per
- * {@link View#isStylusButtonPressable View.isStylusButtonPressable()}.
+ * Set the context clickable state of this view, as per
+ * {@link View#isContextClickable View.isContextClickable()}.
*/
- public abstract void setStylusButtonPressable(boolean state);
+ public abstract void setContextClickable(boolean state);
/**
* Set the focusable state of this view, as per {@link View#isFocusable View.isFocusable()}.