1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 08:37:29 +00:00

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

This commit is contained in:
Ammar Githam 2021-03-20 11:07:17 +09:00
parent 0903804523
commit 737931821e

View File

@ -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