Merge "[Panlingual] Only set description for STS and TB in remove mode" into main

This commit is contained in:
Treehugger Robot
2023-11-09 05:49:11 +00:00
committed by Android (Google) Code Review

View File

@@ -194,6 +194,9 @@ class LocaleDragAndDropAdapter
@VisibleForTesting @VisibleForTesting
protected void setCheckBoxDescription(LocaleDragCell dragCell, CheckBox checkbox, protected void setCheckBoxDescription(LocaleDragCell dragCell, CheckBox checkbox,
boolean isChecked) { boolean isChecked) {
if (!mRemoveMode) {
return;
}
CharSequence checkedStatus = mContext.getText( CharSequence checkedStatus = mContext.getText(
isChecked ? com.android.internal.R.string.checked isChecked ? com.android.internal.R.string.checked
: com.android.internal.R.string.not_checked); : com.android.internal.R.string.not_checked);