aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2015-05-23 15:04:53 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2015-06-13 14:07:58 +0200
commiteb7894b22a4c634ec7a0a823d43a34b56e109c7e (patch)
tree8400f0a1135f774ab9effa530ee56a5335b95a21 /tools
parent790843dfbb346dd7ca1e31e7fca200116a8877fc (diff)
ADD: [droid] standard refreshrate switcher (>= api 21)
All credit to @anssih
Diffstat (limited to 'tools')
-rw-r--r--tools/android/packaging/xbmc/src/org/xbmc/kodi/Main.java.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/android/packaging/xbmc/src/org/xbmc/kodi/Main.java.in b/tools/android/packaging/xbmc/src/org/xbmc/kodi/Main.java.in
index eba046a6ae..0c35d43285 100644
--- a/tools/android/packaging/xbmc/src/org/xbmc/kodi/Main.java.in
+++ b/tools/android/packaging/xbmc/src/org/xbmc/kodi/Main.java.in
@@ -109,4 +109,18 @@ public class Main extends NativeActivity
getApplicationContext().getContentResolver().unregisterContentObserver(mSettingsContentObserver);
super.onDestroy();
}
+
+ private native void _callNative(long funcAddr, long variantAddr);
+
+ private void runNativeOnUiThread(final long funcAddr, final long variantAddr)
+ {
+ runOnUiThread(new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ _callNative(funcAddr, variantAddr);
+ }
+ });
+ }
}