Fix bug where BubbleTextView text fades in after long press.

Introduced by Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93.

Change-Id: I45e180dda09f03297530e5b5575b71f60c03fb5f
This commit is contained in:
Jon Miranda
2019-04-15 13:01:05 -07:00
parent d4eed0b191
commit 83cdca67ba
2 changed files with 3 additions and 8 deletions

View File

@@ -480,8 +480,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
*/
public ObjectAnimator createTextAlphaAnimator(boolean fadeIn) {
float toAlpha = shouldTextBeVisible() && fadeIn ? 1 : 0;
float fromAlpha = toAlpha == 1 ? 0 : 1f;
return ObjectAnimator.ofFloat(this, TEXT_ALPHA_PROPERTY, fromAlpha, toAlpha);
return ObjectAnimator.ofFloat(this, TEXT_ALPHA_PROPERTY, toAlpha);
}
@Override