summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLikai Ding <likaid@codeaurora.org>2016-04-20 11:05:30 +0800
committerSteve Kondik <steve@cyngn.com>2016-09-26 04:54:49 -0700
commit6bd8f200c0543dc83c79286fc0f5cfcd5eed40e8 (patch)
tree4ff7d35d2402d4d4773312ffaa1906a102017ff3
parent454b1567fc6cbfcdbbf3a6f18f64f6fa5524563b (diff)
downloadandroid_packages_apps_Gallery2-6bd8f200c0543dc83c79286fc0f5cfcd5eed40e8.tar.gz
android_packages_apps_Gallery2-6bd8f200c0543dc83c79286fc0f5cfcd5eed40e8.tar.bz2
android_packages_apps_Gallery2-6bd8f200c0543dc83c79286fc0f5cfcd5eed40e8.zip
Gallery: fix error when license expires
License expired pop-up will appear for multiple times. Check error status when start the video. Change-Id: I7ce509aec6859c8117aebc01c7a3c828221aafa3 CRs-Fixed: 980372
-rwxr-xr-xsrc/org/codeaurora/gallery3d/video/CodeauroraVideoView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
index d647304ca..8de906402 100755
--- a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
+++ b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
@@ -462,7 +462,7 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr
private void openVideo() {
clearVideoInfo();
- if (mUri == null || mSurfaceHolder == null) {
+ if (mUri == null || mSurfaceHolder == null || mTargetState == STATE_ERROR) {
// not ready for playback just yet, will try again later
return;
}