try fix storage path width

This commit is contained in:
luvletter2333 2022-07-10 16:04:21 +08:00
parent c71f3240a3
commit e8accc449d
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
1 changed files with 1 additions and 0 deletions

View File

@ -708,6 +708,7 @@ public class AnimatedTextView extends View {
int height = MeasureSpec.getSize(heightMeasureSpec);
if (lastMaxWidth != width) {
drawable.setBounds(getPaddingLeft(), getPaddingTop(), width - getPaddingRight(), height - getPaddingBottom());
lastMaxWidth = width;
setText(drawable.getText(), false);
}
lastMaxWidth = width;