Skip to content

Commit

Permalink
[android] Fixed issue with prop bags again..
Browse files Browse the repository at this point in the history
  • Loading branch information
chrfalch committed Dec 15, 2019
1 parent bab58aa commit a42aafa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public final void updateView() {
if (node == null) {
throw new IllegalArgumentException("Mapped property node does not exists");
} else if (node instanceof StyleAnimatedNode) {
((StyleAnimatedNode) node).collectViewUpdates(mPropMap, shadowViewProps);
((StyleAnimatedNode) node).collectViewUpdates(shadowViewProps, mPropMap);
} else if (node instanceof ValueAnimatedNode) {
Object animatedObject = ((ValueAnimatedNode) node).getAnimatedObject();
if (animatedObject != null) {
Expand All @@ -108,11 +108,11 @@ public final void updateView() {
}

if(shadowViewProps.keySetIterator().hasNextKey()) {
mUIManager.synchronouslyUpdateViewOnUIThread(mConnectedViewTag, mPropMap);
mUIManager.synchronouslyUpdateViewOnUIThread(mConnectedViewTag, shadowViewProps);
}

if(mPropMap.keySetIterator().hasNextKey()) {
mNativeAnimatedNodesManager.enqueueUpdateViewOnNativeThread(mConnectedViewTag, shadowViewProps);
mNativeAnimatedNodesManager.enqueueUpdateViewOnNativeThread(mConnectedViewTag, mPropMap);
}
}
}

0 comments on commit a42aafa

Please sign in to comment.