Updated the minimal panel height for the player
This commit is contained in:
parent
0de4590a87
commit
f5286c466b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue