Fix switching to main player when MainActivity is closed
This commit is contained in:
parent
2379041125
commit
265896a07e
4 changed files with 18 additions and 4 deletions
|
|
@ -30,6 +30,7 @@ import android.view.View;
|
|||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import org.schabi.newpipe.R;
|
||||
|
|
@ -231,6 +232,7 @@ public final class MainPlayer extends Service {
|
|||
return metrics.heightPixels < metrics.widthPixels;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public View getView() {
|
||||
if (playerImpl == null) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue