Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
49e03fa8
Commit
49e03fa8
authored
Apr 09, 2015
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix presentation mode
parent
ebc51ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
...d/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+12
-7
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
49e03fa8
...
@@ -1250,7 +1250,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
...
@@ -1250,7 +1250,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
* @param duration
* @param duration
*/
*/
private
void
showInfo
(
String
text
,
int
duration
)
{
private
void
showInfo
(
String
text
,
int
duration
)
{
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
if
(
mPresentation
==
null
)
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
mInfo
.
setVisibility
(
View
.
VISIBLE
);
mInfo
.
setVisibility
(
View
.
VISIBLE
);
mInfo
.
setText
(
text
);
mInfo
.
setText
(
text
);
mHandler
.
removeMessages
(
FADE_OUT_INFO
);
mHandler
.
removeMessages
(
FADE_OUT_INFO
);
...
@@ -1258,7 +1259,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
...
@@ -1258,7 +1259,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
}
}
private
void
showInfo
(
int
textid
,
int
duration
)
{
private
void
showInfo
(
int
textid
,
int
duration
)
{
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
if
(
mPresentation
==
null
)
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
mInfo
.
setVisibility
(
View
.
VISIBLE
);
mInfo
.
setVisibility
(
View
.
VISIBLE
);
mInfo
.
setText
(
textid
);
mInfo
.
setText
(
textid
);
mHandler
.
removeMessages
(
FADE_OUT_INFO
);
mHandler
.
removeMessages
(
FADE_OUT_INFO
);
...
@@ -1270,7 +1272,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
...
@@ -1270,7 +1272,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
* @param text
* @param text
*/
*/
private
void
showInfo
(
String
text
)
{
private
void
showInfo
(
String
text
)
{
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
if
(
mPresentation
==
null
)
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
mHandler
.
removeMessages
(
FADE_OUT_INFO
);
mHandler
.
removeMessages
(
FADE_OUT_INFO
);
mInfo
.
setVisibility
(
View
.
VISIBLE
);
mInfo
.
setVisibility
(
View
.
VISIBLE
);
mInfo
.
setText
(
text
);
mInfo
.
setText
(
text
);
...
@@ -1298,10 +1301,12 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
...
@@ -1298,10 +1301,12 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
VideoPlayerActivity
.
this
,
android
.
R
.
anim
.
fade_out
));
VideoPlayerActivity
.
this
,
android
.
R
.
anim
.
fade_out
));
mInfo
.
setVisibility
(
View
.
INVISIBLE
);
mInfo
.
setVisibility
(
View
.
INVISIBLE
);
if
(
mVerticalBar
.
getVisibility
()
==
View
.
VISIBLE
)
if
(
mPresentation
==
null
)
{
mVerticalBar
.
startAnimation
(
AnimationUtils
.
loadAnimation
(
if
(
mVerticalBar
.
getVisibility
()
==
View
.
VISIBLE
)
VideoPlayerActivity
.
this
,
android
.
R
.
anim
.
fade_out
));
mVerticalBar
.
startAnimation
(
AnimationUtils
.
loadAnimation
(
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
VideoPlayerActivity
.
this
,
android
.
R
.
anim
.
fade_out
));
mVerticalBar
.
setVisibility
(
View
.
INVISIBLE
);
}
}
}
private
OnAudioFocusChangeListener
mAudioFocusListener
=
!
LibVlcUtil
.
isFroyoOrLater
()
?
null
:
private
OnAudioFocusChangeListener
mAudioFocusListener
=
!
LibVlcUtil
.
isFroyoOrLater
()
?
null
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment