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
b3fc35a5
authored
May 04, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed - App is getting crash when we are trying to logout offline.
parent
bd49c377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
app/src/main/java/com/vsoft/servicenow/ui/HomeScreen.java
app/src/main/java/com/vsoft/servicenow/ui/HomeScreen.java
View file @
b3fc35a5
...
@@ -20,6 +20,7 @@ import com.vsoft.servicenow.api.managers.LoginApiManager;
...
@@ -20,6 +20,7 @@ import com.vsoft.servicenow.api.managers.LoginApiManager;
import
com.vsoft.servicenow.enums.SyncStatus
;
import
com.vsoft.servicenow.enums.SyncStatus
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.utils.Constants
;
import
com.vsoft.servicenow.utils.Constants
;
import
com.vsoft.servicenow.utils.DialogUtils
;
import
com.vsoft.servicenow.utils.PrefManager
;
import
com.vsoft.servicenow.utils.PrefManager
;
import
com.vsoft.servicenow.utils.Util
;
import
com.vsoft.servicenow.utils.Util
;
...
@@ -101,7 +102,11 @@ public class HomeScreen extends HandleNotificationActivity {
...
@@ -101,7 +102,11 @@ public class HomeScreen extends HandleNotificationActivity {
.
setCancelable
(
false
)
.
setCancelable
(
false
)
.
setPositiveButton
(
R
.
string
.
ok_string
,
new
DialogInterface
.
OnClickListener
()
{
.
setPositiveButton
(
R
.
string
.
ok_string
,
new
DialogInterface
.
OnClickListener
()
{
public
void
onClick
(
DialogInterface
dialog
,
int
id
)
{
public
void
onClick
(
DialogInterface
dialog
,
int
id
)
{
new
LogoutTask
().
execute
();
if
(((
CatalogueApplication
)
getApplication
()).
isNetConnected
())
{
new
LogoutTask
().
execute
();
}
else
{
DialogUtils
.
showNoConnectionDialog
(
HomeScreen
.
this
);
}
}
}
})
})
.
setNegativeButton
(
R
.
string
.
cancel
,
new
DialogInterface
.
OnClickListener
()
{
.
setNegativeButton
(
R
.
string
.
cancel
,
new
DialogInterface
.
OnClickListener
()
{
...
...
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