Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
00d189a5
Commit
00d189a5
authored
Jul 18, 2012
by
Sébastien Toque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge dimStatusBarICS into dimStatusBar
parent
f1418104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
...d/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+8
-16
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
00d189a5
...
...
@@ -476,7 +476,7 @@ public class VideoPlayerActivity extends Activity {
activity
.
fadeOutInfo
();
break
;
case
HIDE_NAV:
activity
.
dimStatusBar
ICS
(
);
activity
.
dimStatusBar
(
true
);
break
;
}
}
...
...
@@ -860,30 +860,22 @@ public class VideoPlayerActivity extends Activity {
}
/**
* Dim the status bar and/or navigation icons when needed.
* Android
3
.0 and later
* Dim the status bar and/or navigation icons when needed
on Android 3.x
.
*
Hide it on
Android
4
.0 and later
*/
@TargetApi
(
11
)
private
void
dimStatusBar
(
boolean
dim
)
{
if
(
Util
.
isHoneycombOrLater
())
{
private
void
dimStatusBar
(
boolean
dim
)
{
if
(
Util
.
isHoneycombOrLater
())
{
if
(
dim
)
{
mSurface
.
setSystemUiVisibility
(
View
.
SYSTEM_UI_FLAG_LOW_PROFILE
);
mSurface
.
setSystemUiVisibility
(
Util
.
isICSOrLater
()
?
View
.
SYSTEM_UI_FLAG_HIDE_NAVIGATION
:
View
.
SYSTEM_UI_FLAG_LOW_PROFILE
);
}
else
{
mSurface
.
setSystemUiVisibility
(
View
.
SYSTEM_UI_FLAG_VISIBLE
);
}
}
}
/**
* ICS full-screen profile
* Android 4.0 and later only
*/
@TargetApi
(
14
)
private
void
dimStatusBarICS
()
{
if
(
Util
.
isICSOrLater
())
mSurface
.
setSystemUiVisibility
(
View
.
SYSTEM_UI_FLAG_HIDE_NAVIGATION
);
}
private
void
updateOverlayPausePlay
()
{
if
(
mLibVLC
==
null
)
{
return
;
...
...
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