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
2a51a216
authored
Feb 01, 2018
by
Apple
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed crash issues
parent
850235c5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
7 deletions
app/src/citrix/java/com/vsoft/servicenow/AppConfig.java
app/src/main/java/com/vsoft/servicenow/api/managers/CatalogueVariableApiManager.java
app/src/main/java/com/vsoft/servicenow/ui/CatalogueVariableScreen.java
app/src/main/res/drawable/report_incident_one.png
app/src/main/res/drawable/report_incident_three.png
app/src/main/res/drawable/report_incident_two.png
app/src/citrix/java/com/vsoft/servicenow/AppConfig.java
View file @
2a51a216
...
...
@@ -10,11 +10,11 @@ public class AppConfig {
public
static
final
String
DOMAIN_PRODUCTION
=
"https://ven01199.service-now.com/"
;
public
static
final
String
DOMAIN_TEST
=
"https://ven01199.service-now.com/"
;
public
static
final
String
LOGIN_CLIENT_ID_PRODUCTION
=
"
ac0dd3408c1031006907010c2cc6ef6d
"
;
public
static
final
String
LOGIN_CLIENT_SECRET_PRODUCTION
=
"
oklj6znxv3o9jmyn2mlp
"
;
public
static
final
String
LOGIN_CLIENT_ID_PRODUCTION
=
"
d958eb06b0f3830093781f441d59febc
"
;
public
static
final
String
LOGIN_CLIENT_SECRET_PRODUCTION
=
"
krD*!O}1.8
"
;
public
static
final
String
LOGIN_CLIENT_ID_TEST
=
"
ac0dd3408c1031006907010c2cc6ef6d
"
;
public
static
final
String
LOGIN_CLIENT_SECRET_TEST
=
"
dh85bcz3vx4dvgqys610
"
;
public
static
final
String
LOGIN_CLIENT_ID_TEST
=
"
d958eb06b0f3830093781f441d59febc
"
;
public
static
final
String
LOGIN_CLIENT_SECRET_TEST
=
"
krD*!O}1.8
"
;
/**
* Web services urls
...
...
app/src/main/java/com/vsoft/servicenow/api/managers/CatalogueVariableApiManager.java
View file @
2a51a216
...
...
@@ -116,7 +116,7 @@ public class CatalogueVariableApiManager {
CatalogueVariable
catalogueVariable
=
catalogueVariableResponse
.
getVariables
().
get
(
i
);
JSONObject
catalogueVariableJsonObject
=
catalogueVariableJsonArray
.
getJSONObject
(
i
);
catalogueVariable
.
parseJson
(
catalogueVariableJsonObject
);
if
(!
catalogueVariable
.
getVariableChoiceList
().
isEmpty
())
{
if
(
catalogueVariable
.
getVariableChoiceList
()
!=
null
&&
!
catalogueVariable
.
getVariableChoiceList
().
isEmpty
())
{
Collections
.
sort
(
catalogueVariable
.
getVariableChoiceList
(),
new
Comparator
<
VariableChoice
>()
{
@Override
public
int
compare
(
VariableChoice
lhs
,
VariableChoice
rhs
)
{
...
...
app/src/main/java/com/vsoft/servicenow/ui/CatalogueVariableScreen.java
View file @
2a51a216
...
...
@@ -270,7 +270,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
for
(
int
i
=
0
;
i
<
completeCatalogueVariableList
.
size
();
i
++)
{
CatalogueVariable
catalogueVariable
=
completeCatalogueVariableList
.
get
(
i
);
if
(!
catalogueVariable
.
getVariableChoiceList
().
isEmpty
())
{
if
(
catalogueVariable
.
getVariableChoiceList
()!=
null
&&
!
catalogueVariable
.
getVariableChoiceList
().
isEmpty
())
{
VariableChoiceManager
.
handleGetVariableChoice
(
catalogueVariable
.
getId
(),
catalogueVariable
.
getVariableChoiceList
());
}
...
...
@@ -279,6 +279,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
/*Get all recently saved all items because we need local id of each item for save UiPolicyAction with respect to UiPolicyItem*/
List
<
UiPolicyItem
>
localUiPolicyItemList
=
UiPolicyItemManager
.
getAllUiPolicyItems
(
mCatalogueItem
.
getId
());
if
(
catalogueVariableResponse
!=
null
&&
catalogueVariableResponse
.
getUiPolicy
()
!=
null
&&
catalogueVariableResponse
.
getUiPolicy
().
size
()>
0
){
for
(
int
i
=
0
;
i
<
catalogueVariableResponse
.
getUiPolicy
().
size
();
i
++)
{
UiPolicyItem
uiPolicyItem
=
catalogueVariableResponse
.
getUiPolicy
().
get
(
i
);
for
(
int
j
=
0
;
j
<
localUiPolicyItemList
.
size
();
j
++)
{
...
...
@@ -289,6 +290,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
}
}
for
(
int
i
=
0
;
i
<
localUiPolicyItemList
.
size
();
i
++)
{
UiPolicyItem
uiPolicyItem
=
localUiPolicyItemList
.
get
(
i
);
/*Save UiPolicyAction in local DB*/
...
...
@@ -297,7 +299,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
setPartialCondition
(
uiPolicyItem
);
}
}
}
}
@Override
public
void
onFailApiCall
()
{
...
...
app/src/main/res/drawable/report_incident_one.png
0 → 100644
View file @
2a51a216
21 KB
app/src/main/res/drawable/report_incident_three.png
0 → 100644
View file @
2a51a216
21.1 KB
app/src/main/res/drawable/report_incident_two.png
0 → 100644
View file @
2a51a216
21.3 KB
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