Skip to content

Commit a628345

Browse files
committed
reverted change for removing the comment replies screen(s) when video is closed.
1 parent 82bfea9 commit a628345

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,6 @@ private void setOverlayLook(final AppBarLayout appBar,
24462446
// SlideOffset < 0 when mini player is about to close via swipe.
24472447
// Stop animation in this case
24482448
if (behavior == null || slideOffset < 0) {
2449-
NavigationHelper.closeCommentRepliesFragments(activity);
24502449
return;
24512450
}
24522451
binding.overlayLayout.setAlpha(Math.min(MAX_OVERLAY_ALPHA, 1 - slideOffset));

app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,10 @@ public static void closeCommentRepliesFragments(@NonNull final FragmentActivity
529529

530530
// Only pop back stack entries named CommentRepliesFragment.TAG if they are at the top.
531531
while (fm.getBackStackEntryCount() > 0
532-
&& CommentRepliesFragment.TAG.equals(fm.getBackStackEntryAt(
533-
fm.getBackStackEntryCount() - 1).getName())) {
532+
&& CommentRepliesFragment.TAG.equals(
533+
fm.getBackStackEntryAt(fm.getBackStackEntryCount() - 1).getName()
534+
)
535+
) {
534536
fm.popBackStackImmediate(CommentRepliesFragment.TAG,
535537
FragmentManager.POP_BACK_STACK_INCLUSIVE);
536538
}

0 commit comments

Comments
 (0)