Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 9449153

Browse files
Kevin PetitKevin Petit
Kevin Petit
authored and
Kevin Petit
committed
Remove obsolete code.
1 parent 7c569e8 commit 9449153

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Xamarin.Forms.Platform.Android/VisualElementRenderer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ public void SetElement(TElement element)
212212
oldElement.PropertyChanged -= _propertyChangeHandler;
213213
}
214214

215-
// element may be allowed to be passed as null in the future
216215
Color currentColor = oldElement?.BackgroundColor ?? Color.Default;
217216

218217
if (element.BackgroundColor != currentColor)
@@ -236,7 +235,7 @@ public void SetElement(TElement element)
236235
if (AutoTrack && Tracker == null)
237236
SetTracker(new VisualElementTracker(this));
238237

239-
if (oldElement != null && element != null)
238+
if (oldElement != null)
240239
Tracker?.UpdateLayout();
241240

242241
SendVisualElementInitialized(element, this);

0 commit comments

Comments
 (0)