mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix incorrect padding application
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199683216
This commit is contained in:
parent
4256759011
commit
b408de9ad9
@ -251,7 +251,7 @@ public final class SubtitleView extends View implements TextOutput {
|
||||
// Calculate the bounds after padding is taken into account.
|
||||
int left = getLeft() + getPaddingLeft();
|
||||
int top = rawTop + getPaddingTop();
|
||||
int right = getRight() + getPaddingRight();
|
||||
int right = getRight() - getPaddingRight();
|
||||
int bottom = rawBottom - getPaddingBottom();
|
||||
if (bottom <= top || right <= left) {
|
||||
// No space to draw subtitles.
|
||||
|
Loading…
x
Reference in New Issue
Block a user