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
b73ee666
authored
Oct 04, 2016
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
UOFLMA-112: Fix - When we click OK on "Failed to submit form", do not exit form.
parent
f288a9f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/CatalogueVariableScreen.java
View file @
b73ee666
...
...
@@ -194,7 +194,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
createView
();
}
}
else
{
showErrorDialog
(
R
.
string
.
failed_to_fetch_catalogue_form_string
);
show
FetchVariable
ErrorDialog
(
R
.
string
.
failed_to_fetch_catalogue_form_string
);
}
}
}
...
...
@@ -596,7 +596,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
if
(
syncStatus
==
SyncStatus
.
SUCCESS
)
{
showSubmissionDialog
();
}
else
{
showErrorDialog
(
R
.
string
.
failed_to_submit_form_string
);
show
Submit
ErrorDialog
(
R
.
string
.
failed_to_submit_form_string
);
}
}
}
...
...
@@ -619,12 +619,13 @@ public class CatalogueVariableScreen extends AppCompatActivity {
alert
.
show
();
}
private
void
showErrorDialog
(
int
message
)
{
private
void
show
FetchVariable
ErrorDialog
(
int
message
)
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setMessage
(
message
)
.
setCancelable
(
false
)
.
setPositiveButton
(
android
.
R
.
string
.
ok
,
new
DialogInterface
.
OnClickListener
()
{
public
void
onClick
(
DialogInterface
dialog
,
int
id
)
{
dialog
.
dismiss
();
finish
();
}
});
...
...
@@ -632,6 +633,19 @@ public class CatalogueVariableScreen extends AppCompatActivity {
alert
.
show
();
}
private
void
showSubmitErrorDialog
(
int
message
)
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setMessage
(
message
)
.
setCancelable
(
false
)
.
setPositiveButton
(
android
.
R
.
string
.
ok
,
new
DialogInterface
.
OnClickListener
()
{
public
void
onClick
(
DialogInterface
dialog
,
int
id
)
{
dialog
.
dismiss
();
}
});
AlertDialog
alert
=
builder
.
create
();
alert
.
show
();
}
private
String
getMonth
(
int
month
)
{
return
Constants
.
month
[
month
];
}
...
...
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