File tree 1 file changed +6
-4
lines changed
android/src/main/java/com/ijzerenhein/sharedelement
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ private void updateLayout() {
227
227
// Calculate clipped layout
228
228
mRequiresClipping = !parentLayout .contains (interpolatedLayout );
229
229
230
- Log .d (LOG_TAG , "updateLayout: " + mNodePosition );
230
+ // Log.d(LOG_TAG, "updateLayout: " + mNodePosition);
231
231
232
232
// Update outer viewgroup layout. The outer viewgroup hosts 2 inner views
233
233
// which draw the content & elevation. The outer viewgroup performs additional
@@ -326,10 +326,12 @@ private void updateLayout() {
326
326
}
327
327
328
328
private void updateNodeVisibility () {
329
+ RNSharedElementTransitionItem startItem = mItems .get (Item .START .getValue ());
330
+ RNSharedElementTransitionItem endItem = mItems .get (Item .END .getValue ());
331
+ boolean hidden = mInitialLayoutPassCompleted
332
+ && (((startItem .getStyle () != null ) && (startItem .getContent () != null ))
333
+ || ((endItem .getStyle () != null ) && (endItem .getContent () != null )));
329
334
for (RNSharedElementTransitionItem item : mItems ) {
330
- boolean hidden = mInitialLayoutPassCompleted
331
- && (item .getStyle () != null )
332
- && (item .getContent () != null );
333
335
if (hidden && (mAnimation == RNSharedElementAnimation .FADE_IN ) && item .getName ().equals ("start" )) hidden = false ;
334
336
if (hidden && (mAnimation == RNSharedElementAnimation .FADE_OUT ) && item .getName ().equals ("end" )) hidden = false ;
335
337
item .setHidden (hidden );
You can’t perform that action at this time.
0 commit comments