From 287a7dc829c6626558c943696d48e0a18789ebf5 Mon Sep 17 00:00:00 2001 From: wjiang Date: Fri, 11 Jul 2014 14:51:00 +0800 Subject: Gallery2: don't pause background music perminently Gallery app requests transient audio focus twice and explicitly pauses background music playback. To allow music resume after movie playback exists, remove redundant audio focus request and pause broadcast. CRs-Fixed: 695669 Change-Id: I46b88defc887d3e5b5c97acdc4f5a0a11d486a76 --- src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/org') diff --git a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java index f6ed2c550..e3f80f7b6 100755 --- a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java +++ b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java @@ -455,11 +455,7 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr // not ready for playback just yet, will try again later return; } - // Tell the music playback service to pause - // TODO: these constants need to be published somewhere in the framework. - Intent i = new Intent("com.android.music.musicservicecommand"); - i.putExtra("command", "pause"); - mContext.sendBroadcast(i); + // we shouldn't clear the target state, because somebody might have // called start() previously release(false); -- cgit v1.2.3