]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/IsoUtils.java
Accessibility fixes: set description for flag images.
[Dictionary.git] / src / com / hughes / android / dictionary / IsoUtils.java
index 6ca5003ba1f5d07d3a8525015f4add3e13d86cce..d5c4d436952a0461e5a1baf4983e33c9adc8fb4f 100644 (file)
@@ -245,6 +245,7 @@ public enum IsoUtils {
             result = textButton;
         } else {
             imageButton.setImageResource(languageResources.flagId);
+            imageButton.setContentDescription(isoCodeToLocalizedLanguageName(imageButton.getContext(), indexInfo.shortName));
             imageButton.setScaleType(ImageView.ScaleType.FIT_CENTER);
             textButton.setVisibility(View.GONE);
             imageButton.setVisibility(View.VISIBLE);