Skip to content

Commit

Permalink
Hide statusbar when switching to PiP and back without activating cont…
Browse files Browse the repository at this point in the history
…roller
  • Loading branch information
moneytoo committed Apr 16, 2021
1 parent 1bc1e49 commit afbe3ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/main/java/com/brouken/player/PlayerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,12 @@ public void onReceive(Context context, Intent intent) {
mReceiver = null;
}
playerView.setControllerAutoShow(true);
if (player != null && !player.isPlaying())
playerView.showController();
if (player != null) {
if (player.isPlaying())
Utils.hideSystemUi(playerView);
else
playerView.showController();
}
}
}

Expand Down

0 comments on commit afbe3ce

Please sign in to comment.