Skip to content

Commit

Permalink
fix(android): fixes background color animation with borders (#11053)
Browse files Browse the repository at this point in the history
fixes animating a view's background color always starting from a wrong color
  • Loading branch information
ypbnv authored and keerthi1032 committed Sep 9, 2019
1 parent 6a2aa4d commit 86b3699
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private AnimatorSet buildPropertyAnimators(int x, int y, int w, int h, int paren
// set backgroundColor on the child view and not TiBorderWrapperView itself
bgView = ((TiBorderWrapperView) view).getChildAt(0);
}
TiBackgroundColorWrapper bgWrap = TiBackgroundColorWrapper.wrap(view);
TiBackgroundColorWrapper bgWrap = TiBackgroundColorWrapper.wrap(bgView);
int currentBackgroundColor = bgWrap.getBackgroundColor();
ObjectAnimator bgAnimator =
ObjectAnimator.ofInt(bgView, "backgroundColor", currentBackgroundColor, backgroundColor);
Expand Down

0 comments on commit 86b3699

Please sign in to comment.