[Android] Fix TV startup
Geoffrey Métais
git at videolan.org
Thu Jan 14 13:06:14 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 14 13:05:58 2016 +0100| [e681d66df8c7296e5047c3f8f7e2f423bb2399a8] | committer: Geoffrey Métais
Fix TV startup
> https://code.videolan.org/videolan/vlc-android/commit/e681d66df8c7296e5047c3f8f7e2f423bb2399a8
---
.../flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index d29da39..0aab298 100644
--- a/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -153,9 +153,12 @@ public class MainTvActivity extends BaseTvActivity implements IVideoBrowser, OnI
/*
* skip browser and show directly Audio Player if a song is playing
*/
- if (service.isPlaying() && !service.canSwitchToVideo()) {
+ if (service.isPlaying()) {
+ if (!service.canSwitchToVideo())
+ startActivity(new Intent(this, AudioPlayerActivity.class));
+ finish();
+ } else
updateList();
- }
}
@Override
More information about the Android
mailing list