Updated the minimal panel height for the player

This commit is contained in:
Karim Abou Zeid 2015-12-16 13:08:49 +01:00
commit f5286c466b

View file

@ -214,7 +214,7 @@ public class PlayerFragment extends Fragment implements MusicServiceEventListene
int topMargin = getResources().getDimensionPixelSize(R.dimen.status_bar_padding);
final int availablePanelHeight = slidingUpPanelLayout.getHeight() - playerContent.getHeight() + topMargin;
final int minPanelHeight = (int) getResources().getDisplayMetrics().density * (72 + 32) + topMargin;
final int minPanelHeight = (int) getResources().getDisplayMetrics().density * (72 + 24) + topMargin;
if (availablePanelHeight < minPanelHeight) {
albumCoverContainer.getLayoutParams().height = albumCoverContainer.getHeight() - (minPanelHeight - availablePanelHeight);
albumCoverContainer.forceSquare(false);