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
e1d947da
authored
Jan 08, 2019
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed the crash issues.
parent
e3e9f979
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
app/src/main/java/com/vsoft/servicenow/db/managers/HRCaseItemInputManager.java
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
app/src/main/java/com/vsoft/servicenow/db/managers/HRCaseItemInputManager.java
View file @
e1d947da
...
...
@@ -135,28 +135,27 @@ public class HRCaseItemInputManager implements DBConstants {
}
public
static
List
<
HRCaseItemInput
>
getDirtyItemInput
()
{
// SQLiteDatabase db = CatalogueApplication.getDatabase();
//
// if(db!=null) {
// Cursor c = db.rawQuery("select * from " + TABLE_HR_CASE_ITEM_INPUT
// + " where " + HR_CASE_ITEM_INPUT_SYNC_DIRTY + ">" + SYNC_FLAG_NONE , null);
// ArrayList<HRCaseItemInput> itemInputList;
// if (c.getCount() > 0) {
// itemInputList = new ArrayList<>(c.getCount());
// while (c.moveToNext()) {
// HRCaseItemInput.HRCaseItemInputBuilder builder = HRCaseItemInput.HRCaseItemInputBuilder.aHRCaseItemInput();
// fillAllItemInputDetails(c, builder);
// itemInputList.add(builder.build());
// }
// } else {
// itemInputList = new ArrayList<>(0);
// }
// c.close();
// return itemInputList;
// } else {
// return new ArrayList<>(0);
// }
return
null
;
SQLiteDatabase
db
=
CatalogueApplication
.
getDatabase
();
if
(
db
!=
null
)
{
Cursor
c
=
db
.
rawQuery
(
"select * from "
+
TABLE_HR_CASE_ITEM_INPUT
+
" where "
+
HR_CASE_ITEM_INPUT_SYNC_DIRTY
+
">"
+
SYNC_FLAG_NONE
,
null
);
ArrayList
<
HRCaseItemInput
>
itemInputList
;
if
(
c
.
getCount
()
>
0
)
{
itemInputList
=
new
ArrayList
<>(
c
.
getCount
());
while
(
c
.
moveToNext
())
{
HRCaseItemInput
.
HRCaseItemInputBuilder
builder
=
HRCaseItemInput
.
HRCaseItemInputBuilder
.
aHRCaseItemInput
();
fillAllItemInputDetails
(
c
,
builder
);
itemInputList
.
add
(
builder
.
build
());
}
}
else
{
itemInputList
=
new
ArrayList
<>(
0
);
}
c
.
close
();
return
itemInputList
;
}
else
{
return
new
ArrayList
<>(
0
);
}
}
private
static
void
fillAllItemInputDetails
(
Cursor
c
,
HRCaseItemInput
.
HRCaseItemInputBuilder
builder
)
{
...
...
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
View file @
e1d947da
...
...
@@ -53,13 +53,13 @@ public class MenuProvider {
.
setTitle
(
R
.
string
.
home_screen_reports_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_reports_icon
)
.
build
(),
// new ApprovalsMenuItemData.Builder()
// .setTitle(R.string.home_screen_approvals_title)
// .setMenuIconResId(R.string.home_screen_approvals_icon)
// .build(),
new
NotificationMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_notification_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_notification_icon
)
.
build
()
// new ApprovalsMenuItemData.Builder()
// .setTitle(R.string.home_screen_approvals_title)
// .setMenuIconResId(R.string.home_screen_approvals_icon)
// .build()
);
}
\ No newline at end of file
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