Skip to content

Commit b6c50cc

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Partial revert: fix VideoDetailFragment flickering
Refacor port of: 5155b24 Look at #13132 for more details
1 parent 3a42827 commit b6c50cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,9 @@ class VideoDetailFragment :
13391339
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED)
13401340
}
13411341
// Rebound to the service if it was closed via notification or mini player
1342-
PlayerHolder.setListener(this@VideoDetailFragment)
1343-
PlayerHolder.tryBindIfNeeded(requireContext())
1342+
if (!PlayerHolder.isBound) {
1343+
PlayerHolder.startService(false, this@VideoDetailFragment)
1344+
}
13441345
}
13451346
}
13461347
}

0 commit comments

Comments
 (0)