Hero suggestion is announced as disabled by talkback

- Removed calls to disable view. No ripple effect seen even after that
bug: 65851388
NOTE: cherry picked from master.
Merged-In: I876696a3e7351d586e6d045c8b2d07676f96ea9d
Test: manually tested

Change-Id: Iae377e763ed62b9448221843ed77b4605ad81379
This commit is contained in:
Ajay Nadathur
2017-10-10 12:19:30 -07:00
parent 6ed9a78922
commit e7f5107303

View File

@@ -99,8 +99,6 @@ public class SuggestionAdapter extends RecyclerView.Adapter<DashboardItemHolder>
final View primaryAction = holder.itemView.findViewById(android.R.id.primary); final View primaryAction = holder.itemView.findViewById(android.R.id.primary);
if (primaryAction != null) { if (primaryAction != null) {
clickHandler = primaryAction; clickHandler = primaryAction;
// set the item view to disabled to remove any touch effects
holder.itemView.setEnabled(false);
} }
clickHandler.setOnClickListener(v -> { clickHandler.setOnClickListener(v -> {