Skip to content

Commit f7d5f56

Browse files
committed
fix(android): fixed transition not visible when app was too busy
1 parent 9204d39 commit f7d5f56

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

android/src/main/java/com/ijzerenhein/sharedelement/RNSharedElementTransition.java

+4-9
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,10 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
107107

108108
// Wait for the whole layout pass to have completed before
109109
// requesting the layout and content
110-
UIManagerModule uiManager = ((ThemedReactContext)getContext()).getNativeModule(UIManagerModule.class);
111-
uiManager.addUIBlock(new UIBlock() {
112-
public void execute (NativeViewHierarchyManager nvhm) {
113-
requestStylesAndContent(true);
114-
mInitialLayoutPassCompleted = true;
115-
updateLayout();
116-
updateNodeVisibility();
117-
}
118-
});
110+
requestStylesAndContent(true);
111+
mInitialLayoutPassCompleted = true;
112+
updateLayout();
113+
updateNodeVisibility();
119114
}
120115
}
121116

0 commit comments

Comments
 (0)