From b4df5899f7e6162e407a9e9b02b7c6be1b2d77d0 Mon Sep 17 00:00:00 2001 From: Adam Nathan Date: Sun, 14 Feb 2016 00:23:41 -0800 Subject: [PATCH] Android fix for programmatically setting a GridLength to "*" --- src/android/framework/GridLengthConverter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/android/framework/GridLengthConverter.java b/src/android/framework/GridLengthConverter.java index ec8d4a2..749a3ca 100644 --- a/src/android/framework/GridLengthConverter.java +++ b/src/android/framework/GridLengthConverter.java @@ -20,6 +20,10 @@ class GridLengthConverter { else if (text.endsWith("*")) { gl.type = GridUnitType.Star; text = text.substring(0, text.length() - 1); + if (text.length() == 0) { + // Treat * as 1*, which is needed for the number parsing below + text = "1"; + } } else { gl.type = GridUnitType.Pixel;