aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2015-05-31 14:15:04 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2015-06-14 10:30:24 +0200
commit8b3ee73c2cd16ce6d276b2505d5e2039c2ee4f92 (patch)
tree1a28a3236fdcdc73b5cd495fc0b678f544802520 /tools
parent790843dfbb346dd7ca1e31e7fca200116a8877fc (diff)
FIX: [droid] proper audio focus management
Diffstat (limited to 'tools')
-rw-r--r--tools/android/packaging/xbmc/src/org/xbmc/kodi/XBMCOnAudioFocusChangeListener.java.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/android/packaging/xbmc/src/org/xbmc/kodi/XBMCOnAudioFocusChangeListener.java.in b/tools/android/packaging/xbmc/src/org/xbmc/kodi/XBMCOnAudioFocusChangeListener.java.in
new file mode 100644
index 0000000000..df33b17810
--- /dev/null
+++ b/tools/android/packaging/xbmc/src/org/xbmc/kodi/XBMCOnAudioFocusChangeListener.java.in
@@ -0,0 +1,16 @@
+package org.xbmc.@APP_NAME_LC@;
+
+import android.media.AudioManager.OnAudioFocusChangeListener;
+import android.util.Log;
+
+public class XBMCOnAudioFocusChangeListener implements OnAudioFocusChangeListener
+{
+ native void _onAudioFocusChange(int focusChange);
+
+ @Override
+ public void onAudioFocusChange(int focusChange)
+ {
+ _onAudioFocusChange(focusChange);
+
+ }
+}