[Android] code cleaning
Geoffrey Métais
git at videolan.org
Wed Jan 17 15:29:58 CET 2018
vlc-android | branch: chromecast | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 16 16:56:44 2018 +0100| [bf986e6efb1ebb93b90a2a3be00c7ba7f17cc982] | committer: Geoffrey Métais
code cleaning
> https://code.videolan.org/videolan/vlc-android/commit/bf986e6efb1ebb93b90a2a3be00c7ba7f17cc982
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 7 +------
1 file changed, 1 insertion(+), 6 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 698b68260..77d97748a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -240,7 +240,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
private boolean mIsLoading;
private boolean mIsPlaying = false;
private ImageView mLoading;
- private ImageView mTipsBackground;
private ImageView mNavMenu;
private ImageView mRendererBtn;
private ImageView mPlaybackSettingPlus;
@@ -408,8 +407,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
/* Loading view */
mLoading = (ImageView) findViewById(R.id.player_overlay_loading);
- if (!mDisplayManager.isPrimary())
- mTipsBackground = (ImageView) findViewById(R.id.player_remote_tips_background);
dimStatusBar(true);
mHandler.sendEmptyMessageDelayed(LOADING_ANIMATION, LOADING_ANIMATION_DELAY);
@@ -3441,9 +3438,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
*/
private void stopLoading() {
mHandler.removeMessages(LOADING_ANIMATION);
- UiTools.setViewVisibility(mTipsBackground, View.VISIBLE);
- if (!mIsLoading)
- return;
+ if (!mIsLoading) return;
mIsLoading = false;
mLoading.setVisibility(View.INVISIBLE);
mLoading.clearAnimation();
More information about the Android
mailing list