Browse files

Merge "Let ContactTileRow ignore accessibility event" into ics-mr1

  • Loading branch information...
2 parents 2a40072 + 662f45e commit 4f276976fe22f0fe0fa4560961c4ec7bf7f9d692 Daisuke Miyakawa committed with Android (Google) Code Review Nov 16, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/com/android/contacts/list/ContactTileAdapter.java
View
8 src/com/android/contacts/list/ContactTileAdapter.java
@@ -637,6 +637,14 @@ private void onMeasureForTiles(int widthMeasureSpec, int heightMeasureSpec) {
}
setMeasuredDimension(width, imageSize + getChildAt(0).getPaddingBottom());
}
+
+ @Override
+ public void sendAccessibilityEvent(int eventType) {
+ // This method is called when the child tile is INVISIBLE (meaning "empty"), and the
+ // Accessibility Manager needs to find alternative content description to speak.
+ // Here, we ignore the default behavior, since we don't want to let the manager speak
+ // a contact name for the tile next to the INVISIBLE tile.
+ }
}
/**

0 comments on commit 4f27697

Please sign in to comment.