Correct exit from fullscreen in case of error or close from notification,
This commit is contained in:
parent
c9be812330
commit
92e13dafe5
3 changed files with 9 additions and 2 deletions
|
|
@ -220,6 +220,10 @@ public final class MainPlayer extends Service {
|
|||
}
|
||||
|
||||
if (playerImpl != null) {
|
||||
// Exit from fullscreen when user closes the player via notification
|
||||
if (playerImpl.isFullscreen()) {
|
||||
playerImpl.toggleFullscreen();
|
||||
}
|
||||
removeViewFromParent();
|
||||
|
||||
playerImpl.setRecovery();
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public class CustomBottomSheetBehavior extends BottomSheetBehavior<FrameLayout>
|
|||
}
|
||||
|
||||
// Found that user still swiping, continue following
|
||||
if (skippingInterception) {
|
||||
if (skippingInterception || getState() == BottomSheetBehavior.STATE_SETTLING) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue