Renamed some methods
This commit is contained in:
parent
3e9868cd34
commit
9e84e52907
3 changed files with 10 additions and 10 deletions
|
|
@ -56,7 +56,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
|||
}
|
||||
|
||||
slidingUpPanelLayout.setPanelSlideListener(this);
|
||||
playerFragment.resetShowControlsAnimation();
|
||||
playerFragment.show();
|
||||
|
||||
slidingUpPanelLayout.post(new Runnable() {
|
||||
@Override
|
||||
|
|
@ -98,7 +98,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
|||
if (shouldColorNavigationBar()) {
|
||||
super.setNavigationBarColor(navigationBarColor);
|
||||
}
|
||||
playerFragment.resetShowControlsAnimation();
|
||||
playerFragment.show();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -108,7 +108,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
|||
if (shouldColorNavigationBar()) {
|
||||
super.setNavigationBarColor(playerFragmentColor);
|
||||
}
|
||||
playerFragment.showControls();
|
||||
playerFragment.hide();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ public class PlaybackControlsFragment extends Fragment implements MusicServiceEv
|
|||
}
|
||||
}
|
||||
|
||||
public void showControls() {
|
||||
public void hide() {
|
||||
playPauseFab.animate()
|
||||
.scaleX(1f)
|
||||
.scaleY(1f)
|
||||
|
|
@ -276,7 +276,7 @@ public class PlaybackControlsFragment extends Fragment implements MusicServiceEv
|
|||
.start();
|
||||
}
|
||||
|
||||
public void resetShowControlsAnimation() {
|
||||
public void show() {
|
||||
playPauseFab.setScaleX(0f);
|
||||
playPauseFab.setScaleY(0f);
|
||||
playPauseFab.setRotation(0f);
|
||||
|
|
|
|||
|
|
@ -354,16 +354,16 @@ public class PlayerFragment extends Fragment implements MusicServiceEventListene
|
|||
return false;
|
||||
}
|
||||
|
||||
public void showControls() {
|
||||
playbackControlsFragment.showControls();
|
||||
public void hide() {
|
||||
playbackControlsFragment.hide();
|
||||
}
|
||||
|
||||
public void resetShowControlsAnimation() {
|
||||
playbackControlsFragment.resetShowControlsAnimation();
|
||||
public void show() {
|
||||
playbackControlsFragment.show();
|
||||
}
|
||||
|
||||
public boolean onBackPressed() {
|
||||
if (slidingUpPanelLayout.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) {
|
||||
if (slidingUpPanelLayout.getPanelState() != SlidingUpPanelLayout.PanelState.COLLAPSED) {
|
||||
slidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.COLLAPSED);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue