summaryrefslogtreecommitdiffstats
path: root/core/java/com/android/internal/widget/ActionBarContextView.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-01-07 16:05:02 -0800
committerAlan Viverette <alanv@google.com>2015-01-07 16:05:02 -0800
commita54956a0bc611b1e9b3914edc7a604b59688f6b7 (patch)
tree34f8b45684a39064b717170990243b36a2ea35f9 /core/java/com/android/internal/widget/ActionBarContextView.java
parent235312d64b704315d37e99c133ffa817c47dfc14 (diff)
downloadframeworks_base-a54956a0bc611b1e9b3914edc7a604b59688f6b7.zip
frameworks_base-a54956a0bc611b1e9b3914edc7a604b59688f6b7.tar.gz
frameworks_base-a54956a0bc611b1e9b3914edc7a604b59688f6b7.tar.bz2
Fix accessibility delegation
Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
Diffstat (limited to 'core/java/com/android/internal/widget/ActionBarContextView.java')
-rw-r--r--core/java/com/android/internal/widget/ActionBarContextView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/com/android/internal/widget/ActionBarContextView.java b/core/java/com/android/internal/widget/ActionBarContextView.java
index 7c671e8..5d3f464 100644
--- a/core/java/com/android/internal/widget/ActionBarContextView.java
+++ b/core/java/com/android/internal/widget/ActionBarContextView.java
@@ -529,7 +529,7 @@ public class ActionBarContextView extends AbsActionBarView implements AnimatorLi
}
@Override
- public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
+ public void onInitializeAccessibilityEventInternal(AccessibilityEvent event) {
if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) {
// Action mode started
event.setSource(this);
@@ -537,7 +537,7 @@ public class ActionBarContextView extends AbsActionBarView implements AnimatorLi
event.setPackageName(getContext().getPackageName());
event.setContentDescription(mTitle);
} else {
- super.onInitializeAccessibilityEvent(event);
+ super.onInitializeAccessibilityEventInternal(event);
}
}