aboutsummaryrefslogtreecommitdiff
path: root/tools/android
diff options
context:
space:
mode:
authorMarkus Pfau <pfau@peak3d.de>2018-09-19 15:50:58 +0200
committerGitHub <noreply@github.com>2018-09-19 15:50:58 +0200
commit2c44473e66a15b58ea66f71a49d5e024d0a85280 (patch)
tree04cf1950c07da00e3944331ca99abcb53b8a39c6 /tools/android
parent55b22a6c42257eeabd1269b17eeb6e819597169f (diff)
[Android] call OnResetDisplay() on HDMI_AUDIO_PLUG event (#14431)
[Android] call OnResetDisplay() on HDMI_AUDIO_PLUG event
Diffstat (limited to 'tools/android')
-rw-r--r--tools/android/packaging/xbmc/src/interfaces/XBMCDisplayManagerDisplayListener.java.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/android/packaging/xbmc/src/interfaces/XBMCDisplayManagerDisplayListener.java.in b/tools/android/packaging/xbmc/src/interfaces/XBMCDisplayManagerDisplayListener.java.in
new file mode 100644
index 0000000000..c1573412f0
--- /dev/null
+++ b/tools/android/packaging/xbmc/src/interfaces/XBMCDisplayManagerDisplayListener.java.in
@@ -0,0 +1,28 @@
+package @APP_PACKAGE@.interfaces;
+
+import android.hardware.display.DisplayManager;
+
+public class XBMCDisplayManagerDisplayListener implements DisplayManager.DisplayListener
+{
+ native void _onDisplayAdded(int displayId);
+ native void _onDisplayChanged(int displayId);
+ native void _onDisplayRemoved(int displayId);
+
+ @Override
+ public void onDisplayAdded(int displayId)
+ {
+ _onDisplayAdded(displayId);
+ }
+
+ @Override
+ public void onDisplayChanged(int displayId)
+ {
+ _onDisplayChanged(displayId);
+ }
+
+ @Override
+ public void onDisplayRemoved(int displayId)
+ {
+ _onDisplayRemoved(displayId);
+ }
+}