[Android] Handle TV build for switchToAudioMode()
Geoffrey Métais
git at videolan.org
Tue Mar 24 11:25:35 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 24 10:54:51 2015 +0100| [4734183dd7f898d2cccf6e4f83efd88f00a45986] | committer: Geoffrey Métais
Handle TV build for switchToAudioMode()
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4734183dd7f898d2cccf6e4f83efd88f00a45986
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index cb1701e..e7076f2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1557,6 +1557,13 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
if (getIntent().getAction() != null
&& getIntent().getAction().equals(Intent.ACTION_VIEW)) {
Intent i = new Intent(this, MainActivity.class);
+ if (!Util.isCallable(i)){
+ try {
+ i = new Intent(this, Class.forName("org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity"));
+ } catch (ClassNotFoundException e) {
+ return;
+ }
+ }
startActivity(i);
}
finish();
More information about the Android
mailing list