diff --git a/res/values/strings.xml b/res/values/strings.xml index 9f4f20bfa2..3e2ffce608 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -41,6 +41,8 @@ Wallpaper %1$d of %2$d + + Selected %1$s Delete diff --git a/src/com/android/launcher3/WallpaperPickerActivity.java b/src/com/android/launcher3/WallpaperPickerActivity.java index 9d3164bc92..39921705c2 100644 --- a/src/com/android/launcher3/WallpaperPickerActivity.java +++ b/src/com/android/launcher3/WallpaperPickerActivity.java @@ -52,6 +52,7 @@ import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view.ViewTreeObserver; import android.view.ViewTreeObserver.OnGlobalLayoutListener; +import android.view.accessibility.AccessibilityEvent; import android.view.animation.DecelerateInterpolator; import android.widget.BaseAdapter; import android.widget.FrameLayout; @@ -254,6 +255,10 @@ public class WallpaperPickerActivity extends WallpaperCropActivity { } mSelectedThumb = v; v.setSelected(true); + // TODO: Remove this once the accessibility framework and + // services have better support for selection state. + v.announceForAccessibility( + getString(R.string.announce_selection, v.getContentDescription())); } info.onClick(WallpaperPickerActivity.this); }