Skip to content

Commit

Permalink
chore: Adjust for backport
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Nov 27, 2024
1 parent 1098209 commit c0a9089
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,11 @@ private IDisposable InnerCreateLayers(
// because even though the brush instance is the same, there are additional properties
// that BorderLayerState tracks on Android. This is not ideal and we should avoid it by refactoring
// this file to handle brush changes on the same brush instance on its own instead.
<<<<<<< HEAD
Brush.SetupBrushChanged(_currentState.Background, background, ref _backgroundChanged, () => Update(), false);
Brush.SetupBrushChanged(_currentState.BorderBrush, borderBrush, ref _borderChanged, () => Update(), false);
=======
_backgroundBrushChangedSubscription?.Dispose();
_backgroundBrushChangedSubscription = Brush.SetupBrushChanged(background, ref _backgroundChanged, () => Update(true), false);
_backgroundBrushChangedSubscription = Brush.SetupBrushChanged(background, ref _backgroundChanged, () => Update(), false);

_borderBrushChangedSubscription?.Dispose();
_borderBrushChangedSubscription = Brush.SetupBrushChanged(borderBrush, ref _borderChanged, () => Update(true), false);
>>>>>>> 679b4bff33 (perf(brush): Don't use reflection to invoke brush updates)
_borderBrushChangedSubscription = Brush.SetupBrushChanged(borderBrush, ref _borderChanged, () => Update(), false);

return disposables;
}
Expand Down

0 comments on commit c0a9089

Please sign in to comment.