mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Removed animation on lyrics show up
This commit is contained in:
parent
e79d492af2
commit
c7ebddbefc
3 changed files with 6 additions and 4 deletions
|
|
@ -157,7 +157,10 @@ public class MainActivity extends BaseActivity {
|
||||||
case BottomSheetBehavior.STATE_COLLAPSED:
|
case BottomSheetBehavior.STATE_COLLAPSED:
|
||||||
case BottomSheetBehavior.STATE_SETTLING:
|
case BottomSheetBehavior.STATE_SETTLING:
|
||||||
PlayerBottomSheetFragment playerBottomSheetFragment = (PlayerBottomSheetFragment) getSupportFragmentManager().findFragmentByTag("PlayerBottomSheet");
|
PlayerBottomSheetFragment playerBottomSheetFragment = (PlayerBottomSheetFragment) getSupportFragmentManager().findFragmentByTag("PlayerBottomSheet");
|
||||||
if (playerBottomSheetFragment != null) playerBottomSheetFragment.scrollOnTop();
|
if (playerBottomSheetFragment != null) {
|
||||||
|
playerBottomSheetFragment.scrollOnTop();
|
||||||
|
playerBottomSheetFragment.setLyricsTextViewVisibility(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case BottomSheetBehavior.STATE_DRAGGING:
|
case BottomSheetBehavior.STATE_DRAGGING:
|
||||||
case BottomSheetBehavior.STATE_EXPANDED:
|
case BottomSheetBehavior.STATE_EXPANDED:
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,7 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
||||||
bodyBind.buttonFavorite.setChecked(song.isFavorite());
|
bodyBind.buttonFavorite.setChecked(song.isFavorite());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setLyricsTextViewVisibility(boolean isVisible) {
|
public void setLyricsTextViewVisibility(boolean isVisible) {
|
||||||
if(isVisible) {
|
if(isVisible) {
|
||||||
bodyBind.playerSongLyricsTextView.setVisibility(View.VISIBLE);
|
bodyBind.playerSongLyricsTextView.setVisibility(View.VISIBLE);
|
||||||
bodyBind.playerSongLyricsLabelClickable.setText(R.string.player_hide_lyrics_button);
|
bodyBind.playerSongLyricsLabelClickable.setText(R.string.player_hide_lyrics_button);
|
||||||
|
|
|
||||||
|
|
@ -170,8 +170,7 @@
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:animateLayoutChanges="true">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/player_song_lyrics_label"
|
android:id="@+id/player_song_lyrics_label"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue