Fix cover image cut off in landscape mode (#4901)

This commit is contained in:
Tony Tam 2021-01-31 13:31:39 -08:00 committed by GitHub
parent f3bf708e26
commit c31ab79434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);