Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
89be537c
authored
Dec 29, 2016
by
Kunj
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
UOFLMA-131: Fixed - Issue in order of multiple choice in Start time and end time list.
parent
2b24aeef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
app/src/main/java/com/vsoft/uoflservicenow/api/managers/VariableChoiceApiManager.java
app/src/main/java/com/vsoft/uoflservicenow/api/managers/VariableChoiceApiManager.java
View file @
89be537c
...
...
@@ -106,6 +106,15 @@ public class VariableChoiceApiManager {
for
(
int
i
=
0
;
i
<
variableChoiceJsonArray
.
length
();
i
++)
{
JSONObject
variableChoiceJsonObject
=
variableChoiceJsonArray
.
getJSONObject
(
i
);
VariableChoice
variableChoice
=
gson
.
fromJson
(
variableChoiceJsonObject
.
toString
(),
VariableChoice
.
class
);
String
order
=
variableChoiceJsonObject
.
getString
(
"order"
);
if
(
order
!=
null
&&
!
order
.
isEmpty
()
&&
order
.
contains
(
","
))
{
order
=
order
.
replace
(
","
,
""
);
try
{
variableChoice
.
setOrder
(
Integer
.
parseInt
(
order
));
}
catch
(
NumberFormatException
e
)
{
CatalogueLog
.
e
(
"VariableChoiceApiManager: parse order: exception: "
+
e
);
}
}
variableChoiceItemList
.
add
(
variableChoice
);
}
listener
.
onDoneApiCall
(
variableChoiceItemList
);
...
...
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