Merge "Mark tiles as selected in TileAdapter" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6678a6bb87
@@ -369,6 +369,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
|
|||||||
holder.getTileAsCustomizeView().setShowAppLabel(position > mEditIndex && !info.isSystem);
|
holder.getTileAsCustomizeView().setShowAppLabel(position > mEditIndex && !info.isSystem);
|
||||||
// Don't show the side view for third party tiles, as we don't have the actual state.
|
// Don't show the side view for third party tiles, as we don't have the actual state.
|
||||||
holder.getTileAsCustomizeView().setShowSideView(position < mEditIndex || info.isSystem);
|
holder.getTileAsCustomizeView().setShowSideView(position < mEditIndex || info.isSystem);
|
||||||
|
holder.mTileView.setSelected(true);
|
||||||
holder.mTileView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
|
holder.mTileView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||||
holder.mTileView.setClickable(true);
|
holder.mTileView.setClickable(true);
|
||||||
holder.mTileView.setOnClickListener(null);
|
holder.mTileView.setOnClickListener(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user