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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user