Fixed a a11y regression to click notifications

Test: add notification, try clicking it on the lockscreen with talkback
Change-Id: I27dd75cab6bfdff3f534c31ebfb4df7a43129a6d
Fixes: 62767220
This commit is contained in:
Selim Cinek
2017-06-21 09:01:26 -07:00
parent beba1bf936
commit 751ced6c9d

View File

@@ -303,7 +303,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
@Override
public boolean performClick() {
if (mWasActivatedOnDown || !mNeedsDimming) {
if (mWasActivatedOnDown || !mNeedsDimming || isTouchExplorationEnabled()) {
return super.performClick();
}
return false;