Skip to content

Commit

Permalink
Make unmount only happens when IM is enabled
Browse files Browse the repository at this point in the history
Summary: We should respect the IM config.

Reviewed By: adityasharat

Differential Revision: D64395328

fbshipit-source-id: fb112325010cad0bedfc8f8f5058af404f49a2f1
  • Loading branch information
Andrew Wang authored and facebook-github-bot committed Oct 16, 2024
1 parent 0b59eae commit d36b493
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ protected void onDetached() {

private void maybeUnmountComponents() {
final @Nullable ComponentsConfiguration config = getConfiguration();
if (config != null && config.enableFixForIM && !mIsTemporaryDetached && !hasTransientState()) {
if (config != null
&& config.enableFixForIM
&& !mIsTemporaryDetached
&& !hasTransientState()
&& isIncrementalMountEnabled()) {
notifyVisibleBoundsChanged(EMPTY_RECT);
}
}
Expand Down

0 comments on commit d36b493

Please sign in to comment.