Fix cover image cut off in landscape mode (#4901)
This commit is contained in:
parent
f3bf708e26
commit
c31ab79434
|
@ -216,7 +216,7 @@ public class CoverFragment extends Fragment {
|
|||
imgvCover.setLayoutParams(params);
|
||||
}
|
||||
} else {
|
||||
double percentageHeight = ratio * 0.8;
|
||||
double percentageHeight = ratio * 0.6;
|
||||
mainContainer.setOrientation(LinearLayout.HORIZONTAL);
|
||||
if (newConfig.screenHeightDp > 0) {
|
||||
params.height = (int) (convertDpToPixel(newConfig.screenHeightDp) * percentageHeight);
|
||||
|
|
Loading…
Reference in New Issue