Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
f2119766
Commit
f2119766
authored
Dec 22, 2017
by
Evan W. Patton
Committed by
Jeffrey Schiller
Dec 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore empty/null values for ColorPropertyPicker
Change-Id: I904a77812093a34d2b5cabf792b157e048ab6bb0
parent
f4135e10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
appinventor/appengine/src/com/google/appinventor/client/widgets/properties/ColorChoicePropertyEditor.java
.../client/widgets/properties/ColorChoicePropertyEditor.java
+6
-0
No files found.
appinventor/appengine/src/com/google/appinventor/client/widgets/properties/ColorChoicePropertyEditor.java
View file @
f2119766
...
@@ -240,6 +240,12 @@ public abstract class ColorChoicePropertyEditor extends PropertyEditor {
...
@@ -240,6 +240,12 @@ public abstract class ColorChoicePropertyEditor extends PropertyEditor {
// When receiving the property values from the server hex numbers were converted to decimal
// When receiving the property values from the server hex numbers were converted to decimal
// numbers
// numbers
String
propertyValue
=
property
.
getValue
();
String
propertyValue
=
property
.
getValue
();
// Screens can be loaded in an arbitrary order and if Screen1 is not the first screen loaded,
// then a value of "" will be sent. Just ignore it because it will be corrected after Screen1
// is loaded.
if
(
propertyValue
==
null
||
propertyValue
.
isEmpty
())
{
return
;
}
int
radix
=
10
;
int
radix
=
10
;
if
(
propertyValue
.
startsWith
(
hexPrefix
))
{
if
(
propertyValue
.
startsWith
(
hexPrefix
))
{
propertyValue
=
propertyValue
.
substring
(
hexPrefix
.
length
());
propertyValue
=
propertyValue
.
substring
(
hexPrefix
.
length
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment