From 7710deff8caa5443190849297189f82dfe98bd6f Mon Sep 17 00:00:00 2001 From: kaiyiz Date: Fri, 18 Apr 2014 16:13:11 +0800 Subject: Gallery2: Add audio output switcher between headset/speaker There is no audio output switcher between headset/speaker. Add the audio output switcher button to menu list in order to let user use this function. CRs-Fixed: 650867 Change-Id: I16f5fdc74a76ee55557ba87b0145e51165f0408a --- AndroidManifest.xml | 18 ++ res/values-zh-rCN/codeaurora_strings.xml | 5 +- res/values/codeaurora_strings.xml | 5 +- .../gallery3d/video/ExtensionHelper.java | 32 ++++ .../codeaurora/gallery3d/video/SpeakerHooker.java | 210 +++++++++++++++++++++ 5 files changed, 268 insertions(+), 2 deletions(-) create mode 100644 src/org/codeaurora/gallery3d/video/SpeakerHooker.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 679ca0408..6136da96d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,4 +1,21 @@ + + diff --git a/res/values-zh-rCN/codeaurora_strings.xml b/res/values-zh-rCN/codeaurora_strings.xml index b1b2dbeb4..d046f3f1b 100644 --- a/res/values-zh-rCN/codeaurora_strings.xml +++ b/res/values-zh-rCN/codeaurora_strings.xml @@ -1,6 +1,6 @@