diff options
author | wjiang <wjiang@codeaurora.org> | 2014-07-11 14:51:00 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-11-13 23:41:21 -0800 |
commit | 287a7dc829c6626558c943696d48e0a18789ebf5 (patch) | |
tree | 3af495642c15a576d4e1d18c493a46bbc9f9c940 /src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java | |
parent | 0d48a3d7590fac630d9e429fe8b4ffce1bc5065c (diff) | |
download | android_packages_apps_Gallery2-287a7dc829c6626558c943696d48e0a18789ebf5.tar.gz android_packages_apps_Gallery2-287a7dc829c6626558c943696d48e0a18789ebf5.tar.bz2 android_packages_apps_Gallery2-287a7dc829c6626558c943696d48e0a18789ebf5.zip |
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
Diffstat (limited to 'src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java')
-rwxr-xr-x | src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java | 6 |
1 files changed, 1 insertions, 5 deletions
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); |