Browse Source

Hide player controls initially for video post. Fixes https://github.com/austinhuang0131/barinsta/issues/360

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
737931821e
  1. 2
      app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java

2
app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java

@ -1206,7 +1206,7 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im
@Override @Override
public void onPlayerViewLoaded() { public void onPlayerViewLoaded() {
binding.playerControls.getRoot().setVisibility(View.VISIBLE);
// binding.playerControls.getRoot().setVisibility(View.VISIBLE);
final ViewGroup.LayoutParams layoutParams = binding.videoPost.playerView.getLayoutParams(); final ViewGroup.LayoutParams layoutParams = binding.videoPost.playerView.getLayoutParams();
final int requiredWidth = Utils.displayMetrics.widthPixels; final int requiredWidth = Utils.displayMetrics.widthPixels;
final int resultingHeight = NumberUtils final int resultingHeight = NumberUtils

Loading…
Cancel
Save