[Android] code cleaning

Geoffrey Métais git at videolan.org
Tue Jan 16 17:46:13 CET 2018


vlc-android | branch: chromecast | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 16 16:56:44 2018 +0100| [ad21ed61b9c1af763f1cd635a0ae06c865efa83a] | committer: Geoffrey Métais

code cleaning

> https://code.videolan.org/videolan/vlc-android/commit/ad21ed61b9c1af763f1cd635a0ae06c865efa83a
---

 .../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