Skip to content

Commit 2b8e701

Browse files
committed
delete binding.metadataView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);and changed layout_weight of audioTrackTextView to 2
1 parent fbc664d commit 2b8e701

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/ui/MainPlayerUi.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ protected void setupElementsVisibility() {
289289
binding.topControls.setClickable(true);
290290
binding.topControls.setFocusable(true);
291291

292-
binding.metadataView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);
293292
binding.titleTextView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);
294293
binding.channelTextView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);
295294
}
@@ -935,7 +934,6 @@ public void toggleFullscreen() {
935934
}
936935
fragmentListener.onFullscreenStateChanged(isFullscreen);
937936

938-
binding.metadataView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);
939937
binding.titleTextView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);
940938
binding.channelTextView.setVisibility(isFullscreen ? View.VISIBLE : View.GONE);
941939
binding.playerCloseButton.setVisibility(isFullscreen ? View.GONE : View.VISIBLE);

app/src/main/res/layout/player.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
android:layout_width="0dp"
164164
android:layout_height="35dp"
165165
android:layout_marginEnd="8dp"
166-
android:layout_weight="1"
166+
android:layout_weight="2"
167167
android:background="?attr/selectableItemBackground"
168168
android:gravity="center"
169169
android:minWidth="0dp"

0 commit comments

Comments
 (0)