From 09739923507b97017ae378f6678e548c988c790c Mon Sep 17 00:00:00 2001 From: Vladimir Amiorkov Date: Fri, 24 Aug 2018 17:04:36 +0300 Subject: [PATCH] fix: Clear the child of the saved specs before clearing them (#131) * fix: Clear the child of the saved specs before clearing them * chore: Remove second semicolomn --- .../src/main/java/org/nativescript/widgets/GridLayout.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/widgets/src/main/java/org/nativescript/widgets/GridLayout.java b/android/widgets/src/main/java/org/nativescript/widgets/GridLayout.java index 143ecc952..1dde9c277 100644 --- a/android/widgets/src/main/java/org/nativescript/widgets/GridLayout.java +++ b/android/widgets/src/main/java/org/nativescript/widgets/GridLayout.java @@ -226,6 +226,7 @@ public class GridLayout extends LayoutBase { } private void removeFromMap(View child) { + this.map.get(child).child = null; this.map.remove(child); } @@ -374,7 +375,7 @@ class MeasureSpecs { public boolean measured = false; - public final View child; + public View child; private ItemSpec column; private ItemSpec row; private int columnIndex;