summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-07-04 22:04:05 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-04 22:04:05 -0700
commit986ffc97b0f3fdfe6481e7ed32ed7bf8331a0c0f (patch)
treede481975af6f76302f2d9a154476f529f5b1a6c0 /src/com/android/gallery3d/app
parent290822c84e25e2ec1893000fc08925c8aedefcc6 (diff)
parent1f9fa9c4aeae99e930ba139ac1a2c1b2b3280be4 (diff)
downloadandroid_packages_apps_Gallery2-986ffc97b0f3fdfe6481e7ed32ed7bf8331a0c0f.tar.gz
android_packages_apps_Gallery2-986ffc97b0f3fdfe6481e7ed32ed7bf8331a0c0f.tar.bz2
android_packages_apps_Gallery2-986ffc97b0f3fdfe6481e7ed32ed7bf8331a0c0f.zip
Merge "[QSST]add description of play and pause icon"
Diffstat (limited to 'src/com/android/gallery3d/app')
-rwxr-xr-xsrc/com/android/gallery3d/app/MovieControllerOverlay.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/MovieControllerOverlay.java b/src/com/android/gallery3d/app/MovieControllerOverlay.java
index 9ea770c3e..fd2b6311c 100755
--- a/src/com/android/gallery3d/app/MovieControllerOverlay.java
+++ b/src/com/android/gallery3d/app/MovieControllerOverlay.java
@@ -17,6 +17,7 @@
package com.android.gallery3d.app;
import android.content.Context;
+import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
@@ -382,6 +383,11 @@ public class MovieControllerOverlay extends CommonControllerOverlay implements
mState == State.PAUSED ? R.drawable.videoplayer_play :
mState == State.PLAYING ? R.drawable.videoplayer_pause :
R.drawable.videoplayer_reload);
+ Resources resources = getContext().getResources();
+ mPlayPauseReplayView.setContentDescription(
+ mState == State.PAUSED ? resources.getString(R.string.accessibility_play_video) :
+ mState == State.PLAYING ? resources.getString(R.string.accessibility_pause_video) :
+ resources.getString(R.string.accessibility_reload_video));
mScreenModeExt.onShow();
if (enableRewindAndForward) {
mControllerRewindAndForwardExt.onShow();