[Android] Hide 'lock' and 'resize' button when casting
Geoffrey Métais
git at videolan.org
Fri Jan 26 15:16:55 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 26 10:28:21 2018 +0100| [3519e2a62a4dcc50af7e1dae33d69275242e6699] | committer: Geoffrey Métais
Hide 'lock' and 'resize' button when casting
> https://code.videolan.org/videolan/vlc-android/commit/3519e2a62a4dcc50af7e1dae33d69275242e6699
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 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 41a125571..0dca077fa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -618,8 +618,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
}
public void resetHudLayout() {
- if (mHudBinding == null)
- return;
+ if (mHudBinding == null) return;
final RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams)mHudBinding.playerOverlayButtons.getLayoutParams();
int orientation = getScreenOrientation(100);
boolean portrait = orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ||
@@ -2793,7 +2792,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mHudBinding.playerOverlayRewind.setVisibility(show ? View.VISIBLE : View.INVISIBLE);
mHudBinding.playerOverlayForward.setVisibility(show ? View.VISIBLE : View.INVISIBLE);
}
- mHudBinding.playerOverlaySize.setVisibility(show ? View.VISIBLE : View.INVISIBLE);
+ if (mDisplayManager.isPrimary()) mHudBinding.playerOverlaySize.setVisibility(show ? View.VISIBLE : View.INVISIBLE);
mHudBinding.playerOverlayTracks.setVisibility(show ? View.VISIBLE : View.INVISIBLE);
mHudBinding.playerOverlayAdvFunction.setVisibility(show ? View.VISIBLE : View.INVISIBLE);
if (mHasPlaylist) {
@@ -2840,6 +2839,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
updateNavStatus();
setListeners(true);
initPlaylistUi();
+ if (!mDisplayManager.isPrimary()) {
+ mHudBinding.lockOverlayButton.setVisibility(View.GONE);
+ mHudBinding.playerOverlaySize.setVisibility(View.GONE);
+ }
}
}
More information about the Android
mailing list