diff options
author | Andrew Dolgov <[email protected]> | 2015-07-11 11:35:12 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-07-11 11:35:12 +0300 |
commit | c79fb5a1b2aa0d1cf56a7fa57ea74dd9c88caa56 (patch) | |
tree | d9e774bc83d9368d1ab9a54f9cdc3e21b01bd420 /org.fox.ttrss/src/main/java | |
parent | b26d659004d46ab8e90da1b01cd8bc448f35fc6e (diff) |
video player: add progress bar
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java index c8056866..57ec85b7 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java @@ -147,6 +147,10 @@ public class VideoPlayerActivity extends CommonActivity { mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
+
+ View loadingBar = findViewById(R.id.video_loading);
+ if (loadingBar != null) loadingBar.setVisibility(View.GONE);
+
resizeSurface();
mp.setLooping(true);
mp.start();
|