Skip to content

Commit

Permalink
fix(Android): missing negation in check for mismatched frames (softwa…
Browse files Browse the repository at this point in the history
…re-mansion#2214)

## Description

The error check was bad - it reported error each time the frames were
the same.
Obviously it shoud report frame mismatch.


## Changes

Added missing negation.

## Checklist

- [x] Ensured that CI passes
  • Loading branch information
kkafar authored and ja1ns committed Oct 9, 2024
1 parent 4c9e5fe commit 9ab2597
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RNSScreenComponentDescriptor final
// state update.
if (screenShadowNode.getFrameCorrectionModes().check(
FrameCorrectionModes::Mode::FrameHeightCorrection) &&
compareFrameSizes(
!compareFrameSizes(
screenShadowNode.layoutMetrics_.frame.size,
stateData.frameSize)) {
LOG(ERROR)
Expand Down

0 comments on commit 9ab2597

Please sign in to comment.