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
1f2ce4a2
authored
May 08, 2017
by
Germán Callejas Alcántara
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
pcbddbhelper changed
parent
2f0c9f00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 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 @
1f2ce4a2
...
...
@@ -222,22 +222,15 @@ public class PCBDBHelper extends SQLiteOpenHelper {
public
void
setStudentVocabulary
(
Vocabulary
vocabulary
)
{
SQLiteDatabase
db
=
this
.
getWritableDatabase
();
int
id_stu
=
this
.
getCurrentUser
().
get_id_stu
();
<<<<<<<
4748
b817cf03a1d7c60a8b8cde67f05075afe99f
=======
int
seconds1
=
Calendar
.
getInstance
().
get
(
Calendar
.
SECOND
);
Log
.
i
(
LOG_TAG
,
"tamVoc to insert: "
+
vocabulary
.
size
());
>>>>>>>
dbcde972e39f99c8d77c15874db2f92ed0515887
db
.
delete
(
"collection"
,
"id_stu="
+
id_stu
,
null
);
ContentValues
values
=
new
ContentValues
(
6
);
values
.
put
(
"id_stu"
,
id_stu
);
db
.
beginTransaction
();
for
(
Picto
picto
:
vocabulary
)
{
<<<<<<<
4748
b817cf03a1d7c60a8b8cde67f05075afe99f
=======
Log
.
i
(
LOG_TAG
,
"inserting "
+
picto
.
get_id
()+
":"
+
picto
.
get_translation
()+
":"
+
picto
.
get_json_attrs
()+
"-id_sce: "
+
getActiveSceneForStudent
(
id_stu
));
newsize
++;
>>>>>>>
dbcde972e39f99c8d77c15874db2f92ed0515887
values
.
put
(
"id_picto"
,
picto
.
get_id
());
values
.
put
(
"id_scene"
,
vocabulary
.
getId_scene
());
values
.
put
(
"url"
,
picto
.
get_url
());
...
...
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