1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-25 16:21:22 +00:00

More fixes with opening VideoDetailFragment

This commit is contained in:
Stypox
2020-10-31 20:26:09 +01:00
parent bb882ada2c
commit 2a2c82e73b
13 changed files with 87 additions and 170 deletions

View File

@@ -240,7 +240,7 @@ public final class MainPlayer extends Service {
}
public void removeViewFromParent() {
if (getView().getParent() != null) {
if (getView() != null && getView().getParent() != null) {
if (playerImpl.getParentActivity() != null) {
// This means view was added to fragment
final ViewGroup parent = (ViewGroup) getView().getParent();