[Android] VideoPlayerActivity: code cosmetics

Jean-Baptiste Kempf git at videolan.org
Tue Oct 30 10:59:35 CET 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 30 11:59:20 2012 +0100| [f80a4da98d4cc1fbdddd648abc5c8fb3281c6c10] | committer: Jean-Baptiste Kempf

VideoPlayerActivity: code cosmetics

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f80a4da98d4cc1fbdddd648abc5c8fb3281c6c10
---

 .../org/videolan/vlc/gui/video/VideoPlayerActivity.java |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 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 963fc7f..c659b5c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1124,15 +1124,14 @@ public class VideoPlayerActivity extends Activity {
      */
     @TargetApi(11)
     private void dimStatusBar(boolean dim) {
-        if (Util.isHoneycombOrLater()) {
-            if (dim) {
-                mSurface.setSystemUiVisibility(Util.hasNavBar()
+        if (!Util.isHoneycombOrLater())
+            return;
+
+        mSurface.setSystemUiVisibility(
+                dim ? (Util.hasNavBar()
                         ? View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|View.SYSTEM_UI_FLAG_LOW_PROFILE
-                        : View.SYSTEM_UI_FLAG_LOW_PROFILE);
-            } else {
-                mSurface.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
-            }
-        }
+                        : View.SYSTEM_UI_FLAG_LOW_PROFILE)
+                    : View.SYSTEM_UI_FLAG_VISIBLE);
     }
 
     private void updateOverlayPausePlay() {



More information about the Android mailing list