浏览代码

Fix #1971 hiding the action bar in case of fullscreen video playback

AndyScherzinger 7 年之前
父节点
当前提交
9f5a70555e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/com/owncloud/android/ui/preview/PreviewVideoActivity.java

+ 4 - 0
src/main/java/com/owncloud/android/ui/preview/PreviewVideoActivity.java

@@ -104,6 +104,10 @@ public class PreviewVideoActivity extends FileActivity implements OnCompletionLi
           
         // keep the screen on while the playback is performed (prevents screen off by battery save)
         mVideoPlayer.setKeepScreenOn(true);
+
+        if(getSupportActionBar() != null) {
+            getSupportActionBar().hide();
+        }
     }
 
     @Override