Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffa7e173 authored by alanv's avatar alanv Committed by Android Git Automerger
Browse files

am 3c0e293e: Don\'t override sendAccessibilityEvent() in ContactTileRow.

* commit '3c0e293e':
  Don't override sendAccessibilityEvent() in ContactTileRow.
parents fbfe5853 3c0e293e
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -515,6 +515,9 @@ public class ContactTileAdapter extends BaseAdapter {
            super(context);
            mItemViewType = itemViewType;
            mLayoutResId = getLayoutResourceId(mItemViewType);

            // Remove row (but not children) from accessibility node tree.
            setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
        }

        /**
@@ -654,14 +657,6 @@ public class ContactTileAdapter extends BaseAdapter {
            }
            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.
        }
    }

    /**