Cancelling the stateannouncer when entering button drop target

Change-Id: Ia10298e1d4862fc5f46894fa6d934207d6e9c117
This commit is contained in:
Sunny Goyal committed 2015-09-25 12:17:08 -07:00
1 parent e78e3d734b
commit d21301e674
2 files changed
+7

No files matched your search

@@ -124,6 +124,9 @@ public abstract class ButtonDropTarget extends TextView
mDrawable.setColorFilter(new ColorMatrixColorFilter(mCurrentFilter));
setTextColor(mHoverColor);
}
if (d.stateAnnouncer != null) {
d.stateAnnouncer.cancel();
}
sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);
}