diff options
author | Chris Koying Browet <cbro@semperpax.com> | 2017-01-09 18:47:14 +0100 |
---|---|---|
committer | Chris "Koying" Browet <cbro@semperpax.com> | 2017-08-15 18:06:29 +0200 |
commit | 5a199b7137f775a866aecb3281aaca441c7391eb (patch) | |
tree | e5573a06fc56f7ea829d446cac32849a8e969588 /tools/android | |
parent | 0cb2794ce775fc16dc6583ff5873fb70c8566e95 (diff) |
ADD: [droid] Implement "Visible Behind"
Diffstat (limited to 'tools/android')
-rw-r--r-- | tools/android/packaging/xbmc/activity_main.xml.in | 2 | ||||
-rw-r--r-- | tools/android/packaging/xbmc/src/Main.java.in | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tools/android/packaging/xbmc/activity_main.xml.in b/tools/android/packaging/xbmc/activity_main.xml.in index 7ec695f4ab..1345cb0f6f 100644 --- a/tools/android/packaging/xbmc/activity_main.xml.in +++ b/tools/android/packaging/xbmc/activity_main.xml.in @@ -2,7 +2,7 @@ android:id="@+id/VideoLayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/transparent" > + > </RelativeLayout> diff --git a/tools/android/packaging/xbmc/src/Main.java.in b/tools/android/packaging/xbmc/src/Main.java.in index 953fd370d9..205e9d2618 100644 --- a/tools/android/packaging/xbmc/src/Main.java.in +++ b/tools/android/packaging/xbmc/src/Main.java.in @@ -31,7 +31,8 @@ public class Main extends NativeActivity implements Choreographer.FrameCallback native void _onNewIntent(Intent intent); native void _onActivityResult(int requestCode, int resultCode, Intent resultData); native void _doFrame(long frameTimeNanos); - + native void _onVisibleBehindCanceled(); + private Runnable leanbackUpdateRunnable = new Runnable() { @Override @@ -228,6 +229,13 @@ public class Main extends NativeActivity implements Choreographer.FrameCallback } @Override + public void onVisibleBehindCanceled() + { + _onVisibleBehindCanceled(); + super.onVisibleBehindCanceled(); + } + + @Override public void doFrame(long frameTimeNanos) { Choreographer.getInstance().postFrameCallback(this); |