Przeglądaj źródła

Merge pull request #2360 from nextcloud/fixVideoFullscreen

Hiding the action bar in case of fullscreen video playback
Tobias Kaminsky 7 lat temu
rodzic
commit
3dd157b20c

+ 5 - 1
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
@@ -239,4 +243,4 @@ public class PreviewVideoActivity extends FileActivity implements OnCompletionLi
    }
 
 
-}
+}