mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 18:31:40 +00:00
Check the presence of the context
This commit is contained in:
parent
b60c5448b2
commit
c1c1c3acfa
3 changed files with 17 additions and 4 deletions
|
|
@ -163,6 +163,7 @@ public class MainActivity extends BaseActivity {
|
|||
break;
|
||||
case BottomSheetBehavior.STATE_COLLAPSED:
|
||||
if (playerBottomSheetFragment != null) {
|
||||
playerBottomSheetFragment.scrollOnTop();
|
||||
playerBottomSheetFragment.goBackToFirstPage();
|
||||
}
|
||||
case BottomSheetBehavior.STATE_SETTLING:
|
||||
|
|
@ -172,6 +173,7 @@ public class MainActivity extends BaseActivity {
|
|||
break;
|
||||
case BottomSheetBehavior.STATE_EXPANDED:
|
||||
if (playerBottomSheetFragment != null) {
|
||||
playerBottomSheetFragment.scrollOnTop();
|
||||
setBottomSheetDraggableState(playerBottomSheetFragment.isViewPagerInFirstPage());
|
||||
}
|
||||
case BottomSheetBehavior.STATE_DRAGGING:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue