mirror of
https://github.com/androidx/media.git
synced 2025-05-15 19:49:50 +08:00
Reset aspect ratio
This commit is contained in:
parent
72a2b82370
commit
5635ca2792
@ -1079,6 +1079,9 @@ public class PlayerView extends FrameLayout {
|
|||||||
private boolean setDrawableArtwork(Drawable drawable) {
|
private boolean setDrawableArtwork(Drawable drawable) {
|
||||||
if(drawable != null) {
|
if(drawable != null) {
|
||||||
artworkView.setImageDrawable(drawable);
|
artworkView.setImageDrawable(drawable);
|
||||||
|
if(contentFrame != null) {
|
||||||
|
contentFrame.setAspectRatio(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user