Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit a98c0bd

Browse files
authored
Merge pull request TeamNewPipe#6493 from TeamNewPipe/hotfix-v0.21.5
Hotfix release 0.21.5
2 parents 70b9330 + cdfe686 commit a98c0bd

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ android {
1717
resValue "string", "app_name", "NewPipe"
1818
minSdkVersion 19
1919
targetSdkVersion 29
20-
versionCode 970
21-
versionName "0.21.4"
20+
versionCode 971
21+
versionName "0.21.5"
2222

2323
multiDexEnabled true
2424

app/src/main/java/org/schabi/newpipe/player/helper/LoadController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ private LoadController(final int initialPlaybackBufferMs,
3232

3333
final DefaultLoadControl.Builder builder = new DefaultLoadControl.Builder();
3434
builder.setBufferDurationsMs(minimumPlaybackBufferMs, optimalPlaybackBufferMs,
35-
initialPlaybackBufferMs, initialPlaybackBufferMs);
35+
initialPlaybackBufferMs,
36+
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS);
3637
internalLoadControl = builder.build();
3738
}
3839

app/src/main/res/layout-large-land/player.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,17 @@
563563
android:tint="?attr/colorAccent"
564564
app:srcCompat="@drawable/ic_shuffle"
565565
tools:ignore="ContentDescription,RtlHardcoded" />
566+
567+
<androidx.appcompat.widget.AppCompatTextView
568+
android:id="@+id/itemsListHeaderDuration"
569+
style="@style/TextAppearance.AppCompat.Medium"
570+
android:layout_width="wrap_content"
571+
android:layout_height="wrap_content"
572+
android:layout_centerVertical="true"
573+
android:layout_toLeftOf="@id/itemsListClose"
574+
android:layout_toRightOf="@id/shuffleButton"
575+
android:gravity="center"
576+
android:textColor="@android:color/white" />
566577
</RelativeLayout>
567578

568579
<androidx.recyclerview.widget.RecyclerView
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Hotfix
2+
• Increase buffer for playback after rebuffer
3+
• Fixed crash on tablets and TVs when clicking on the play-queue icon in the player

0 commit comments

Comments
 (0)