Commit bbc25004 authored by Edward Wang's avatar Edward Wang
Browse files

VideoPlayerActivity: move title count condition to menu determining condition

parent 3e15c2e3
......@@ -2228,8 +2228,8 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
}
private void updateNavStatus() {
mHasMenu = mLibVLC.getChapterCountForTitle(0) > 1;
mIsNavMenu = mHasMenu && mLibVLC.getTitle() == 0 && mLibVLC.getTitleCount() > 1;
mHasMenu = mLibVLC.getChapterCountForTitle(0) > 1 && mLibVLC.getTitleCount() > 1;
mIsNavMenu = mHasMenu && mLibVLC.getTitle() == 0;
/***
* HACK ALERT: assume that any media with >1 titles = DVD with menus
* Should be replaced with a more robust title/chapter selection popup
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment