Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ef942e65
authored
Jan 14, 2018
by
Fernando Martínez Santiago
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Pictogram 1.6, beta 8, issue
#448
parent
3ab2912f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/PCBDBHelper.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/PCBDBHelper.java
View file @
ef942e65
...
...
@@ -254,6 +254,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
values
.
put
(
"id_stu"
,
id_stu
);
int
n
=
0
;
for
(
Picto
picto
:
vocabulary_grid
)
{
n
++;
values
.
put
(
"id_picto"
,
picto
.
get_ImgId
());
values
.
put
(
"id_grid"
,
picto
.
get_grid
());
...
...
@@ -262,8 +263,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
values
.
put
(
"url"
,
picto
.
get_url
());
values
.
put
(
"translation"
,
picto
.
get_translation
());
values
.
put
(
"attributes"
,
picto
.
get_json_attrs
());
db
.
delete
(
"collection_detail"
,
"id_grid="
+
picto
.
get_grid
()+
" and id_picto="
+
picto
.
get_ImgId
(),
null
);
db
.
insertWithOnConflict
(
"collection_detail"
,
null
,
values
,
SQLiteDatabase
.
CONFLICT_ABORT
);
db
.
insertWithOnConflict
(
"collection_detail"
,
null
,
values
,
SQLiteDatabase
.
CONFLICT_REPLACE
);
}
Log
.
i
(
LOG_TAG
,
"Storage "
+
n
+
" pictos for student "
+
id_stu
);
//db.close(); <--no es necesario cerrar la bbdd https://groups.google.com/forum/#!msg/android-developers/NwDRpHUXt0U/jIam4Q8-cqQJ
...
...
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