Fix incorrect padding application

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=199683216
This commit is contained in:
olly 2018-06-07 13:08:24 -07:00 committed by Oliver Woodman
parent 4256759011
commit b408de9ad9

View File

@ -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.