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
9dde565e
authored
Nov 22, 2016
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed - We need to get updated data from server each time.
parent
254ec802
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
36 deletions
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueItemScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/MyIncidentScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/MyRequestActivity.java
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueItemScreen.java
View file @
9dde565e
...
@@ -86,15 +86,15 @@ public class CatalogueItemScreen extends AppCompatActivity {
...
@@ -86,15 +86,15 @@ public class CatalogueItemScreen extends AppCompatActivity {
// Send initial screen view hit.
// Send initial screen view hit.
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
List
<
CatalogueItem
>
catalogueItemList
=
CatalogueItemManager
.
getAllCatalogueItems
(
mCatalogue
.
getId
());
if
(
application
.
isNetConnected
())
{
if
(
catalogueItemList
.
isEmpty
())
{
new
FetchCatalogueItem
().
execute
();
if
(
application
.
isNetConnected
())
{
}
else
{
new
FetchCatalogueItem
().
execute
(
);
List
<
CatalogueItem
>
catalogueItemList
=
CatalogueItemManager
.
getAllCatalogueItems
(
mCatalogue
.
getId
()
);
}
else
{
if
(
catalogueItemList
.
isEmpty
())
{
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
CatalogueItemScreen
.
this
);
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
CatalogueItemScreen
.
this
);
}
else
{
setData
(
catalogueItemList
);
}
}
}
else
{
setData
(
catalogueItemList
);
}
}
}
}
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueScreen.java
View file @
9dde565e
...
@@ -67,15 +67,15 @@ public class CatalogueScreen extends AppCompatActivity {
...
@@ -67,15 +67,15 @@ public class CatalogueScreen extends AppCompatActivity {
// Send initial screen view hit.
// Send initial screen view hit.
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
List
<
Catalogue
>
catalogueList
=
CatalogueManager
.
getAllCatalogues
();
if
(
application
.
isNetConnected
())
{
if
(
catalogueList
.
isEmpty
())
{
new
FetchCatalogue
().
execute
();
if
(
application
.
isNetConnected
())
{
}
else
{
new
FetchCatalogue
().
execute
();
List
<
Catalogue
>
catalogueList
=
CatalogueManager
.
getAllCatalogues
();
if
(!
catalogueList
.
isEmpty
())
{
setData
(
catalogueList
);
}
else
{
}
else
{
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
CatalogueScreen
.
this
);
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
CatalogueScreen
.
this
);
}
}
}
else
{
setData
(
catalogueList
);
}
}
}
}
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
View file @
9dde565e
...
@@ -171,17 +171,17 @@ public class CatalogueVariableScreen extends AppCompatActivity {
...
@@ -171,17 +171,17 @@ public class CatalogueVariableScreen extends AppCompatActivity {
// Send initial screen view hit.
// Send initial screen view hit.
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
mCatalogueVariableList
=
CatalogueVariableManager
.
getAllVariable
(
mCatalogueItem
.
getId
());
if
(
mApplication
.
isNetConnected
())
{
setVariableChoices
();
new
FetchCatalogueVariable
().
execute
();
if
(
mCatalogueVariableList
.
isEmpty
())
{
}
else
{
if
(
mApplication
.
isNetConnected
())
{
mCatalogueVariableList
=
CatalogueVariableManager
.
getAllVariable
(
mCatalogueItem
.
getId
());
new
FetchCatalogueVariable
().
execute
();
if
(
mCatalogueVariableList
.
isEmpty
())
{
}
else
{
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
CatalogueVariableScreen
.
this
);
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
CatalogueVariableScreen
.
this
);
}
else
{
setVariableChoices
();
createView
();
runUIPolicyActions
(
null
);
}
}
}
else
{
createView
();
runUIPolicyActions
(
null
);
}
}
}
}
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/MyIncidentScreen.java
View file @
9dde565e
...
@@ -67,15 +67,15 @@ public class MyIncidentScreen extends AppCompatActivity {
...
@@ -67,15 +67,15 @@ public class MyIncidentScreen extends AppCompatActivity {
// Send initial screen view hit.
// Send initial screen view hit.
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
Util
.
sendScreenName
(
tracker
,
actionBar
.
getTitle
().
toString
());
mIncidentList
=
MyIncidentsManager
.
getAllIncidents
();
if
(
application
.
isNetConnected
())
{
if
(
mIncidentList
.
isEmpty
())
{
new
FetchIncident
().
execute
();
if
(
application
.
isNetConnected
())
{
}
else
{
new
FetchIncident
().
execute
();
mIncidentList
=
MyIncidentsManager
.
getAllIncidents
();
}
else
{
if
(
mIncidentList
.
isEmpty
())
{
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
MyIncidentScreen
.
this
);
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
MyIncidentScreen
.
this
);
}
else
{
setData
(
mIncidentList
);
}
}
}
else
{
setData
(
mIncidentList
);
}
}
}
}
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/MyRequestActivity.java
View file @
9dde565e
...
@@ -68,15 +68,15 @@ public class MyRequestActivity extends AppCompatActivity {
...
@@ -68,15 +68,15 @@ public class MyRequestActivity extends AppCompatActivity {
mAdapter
=
new
MyRequestAdapter
(
MyRequestActivity
.
this
);
mAdapter
=
new
MyRequestAdapter
(
MyRequestActivity
.
this
);
mListView
.
setAdapter
(
mAdapter
);
mListView
.
setAdapter
(
mAdapter
);
List
<
MyRequest
>
myRequestList
=
MyRequestsManager
.
getAllRequests
();
if
(
application
.
isNetConnected
())
{
if
(
myRequestList
.
isEmpty
())
{
new
FetchMyRequestData
().
execute
();
if
(
application
.
isNetConnected
())
{
}
else
{
new
FetchMyRequestData
().
execute
();
List
<
MyRequest
>
myRequestList
=
MyRequestsManager
.
getAllRequests
();
}
else
{
if
(
myRequestList
.
isEmpty
())
{
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
MyRequestActivity
.
this
);
DialogUtils
.
showNoConnectionDialogWithCloseActivity
(
MyRequestActivity
.
this
);
}
else
{
setData
(
myRequestList
);
}
}
}
else
{
setData
(
myRequestList
);
}
}
}
}
...
...
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