[Android] VideoPlayerActivity: clarify variable
Edward Wang
git at videolan.org
Mon Jul 7 02:55:43 CEST 2014
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jul 6 20:15:15 2014 -0400| [6e584e5e38ce7c8f80ae3f430850f03cd34c1d54] | committer: Edward Wang
VideoPlayerActivity: clarify variable
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6e584e5e38ce7c8f80ae3f430850f03cd34c1d54
---
.../org/videolan/vlc/gui/video/VideoPlayerActivity.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
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 c1c70b1..d456704 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -236,7 +236,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
// Navigation handling (DVD, Blu-Ray...)
private ImageButton mNavMenu;
- private boolean mHasNav = false;
+ private boolean mHasChapters = false;
private boolean mIsNavMenu = false;
@Override
@@ -828,7 +828,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
case EventHandler.MediaParsedChanged:
Log.i(TAG, "MediaParsedChanged");
activity.updateNavStatus();
- if (!activity.mHasNav && activity.mLibVLC.getVideoTracksCount() < 1) {
+ if (!activity.mHasChapters && activity.mLibVLC.getVideoTracksCount() < 1) {
Log.i(TAG, "No video track, open in audio mode");
activity.switchToAudioMode();
}
@@ -858,7 +858,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
break;
case EventHandler.MediaPlayerVout:
activity.updateNavStatus();
- if (!activity.mHasNav)
+ if (!activity.mHasChapters)
activity.handleVout(msg);
break;
case EventHandler.MediaPlayerPositionChanged:
@@ -2226,10 +2226,10 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
}
private void updateNavStatus() {
- mHasNav = mLibVLC.getChapterCountForTitle(0) > 1;
- mIsNavMenu = mHasNav && mLibVLC.getTitle() == 0;
+ mHasChapters = mLibVLC.getChapterCountForTitle(0) > 1;
+ mIsNavMenu = mHasChapters && mLibVLC.getTitle() == 0;
- Log.e(TAG, "UpdateNavStatus: " + mHasNav + " " + mIsNavMenu);
+ Log.e(TAG, "UpdateNavStatus: " + mHasChapters + " " + mIsNavMenu);
if (mIsNavMenu) {
/*
* Keep the overlay hidden in order to have touch events directly
@@ -2237,7 +2237,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
*/
hideOverlay(false);
}
- else if (mHasNav) {
+ else if (mHasChapters) {
setESTrackLists(true);
setESTracks();
More information about the Android
mailing list