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
b5c194ac
authored
May 24, 2017
by
Jose Antonio
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
4bbed516
c220e771
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 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 @
b5c194ac
...
@@ -218,7 +218,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
...
@@ -218,7 +218,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
*/
*/
public
Vocabulary
getStudentVocabulary
(
Vocabulary
vocabulary
)
throws
JSONException
{
public
Vocabulary
getStudentVocabulary
(
Vocabulary
vocabulary
)
throws
JSONException
{
int
id_stu
=
this
.
currentUser
.
get_id_stu
();
int
id_stu
=
this
.
currentUser
.
get_id_stu
();
int
id_scene
=
getActiveSceneForStudent
(
id_stu
);
int
id_scene
=
this
.
currentUser
.
get_active_scene
(
);
SQLiteDatabase
db
=
this
.
getReadableDatabase
();
SQLiteDatabase
db
=
this
.
getReadableDatabase
();
...
@@ -253,7 +253,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
...
@@ -253,7 +253,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
Log
.
i
(
LOG_TAG
,
"inserting "
+
picto
.
get_id
()+
":"
+
picto
.
get_translation
()+
":"
+
picto
.
get_json_attrs
()+
"-id_sce: "
+
PCBcontext
.
getPcbdb
().
getCurrentUser
().
get_active_scene
());
Log
.
i
(
LOG_TAG
,
"inserting "
+
picto
.
get_id
()+
":"
+
picto
.
get_translation
()+
":"
+
picto
.
get_json_attrs
()+
"-id_sce: "
+
PCBcontext
.
getPcbdb
().
getCurrentUser
().
get_active_scene
());
values
.
put
(
"id_picto"
,
picto
.
get_id
());
values
.
put
(
"id_picto"
,
picto
.
get_id
());
values
.
put
(
"id_scene"
,
getActiveSceneForStudent
(
id_stu
));
values
.
put
(
"id_scene"
,
this
.
currentUser
.
get_active_scene
(
));
values
.
put
(
"id_stupicto"
,
picto
.
get_stupicto_id
());
values
.
put
(
"id_stupicto"
,
picto
.
get_stupicto_id
());
values
.
put
(
"url"
,
picto
.
get_url
());
values
.
put
(
"url"
,
picto
.
get_url
());
values
.
put
(
"translation"
,
picto
.
get_translation
());
values
.
put
(
"translation"
,
picto
.
get_translation
());
...
@@ -279,7 +279,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
...
@@ -279,7 +279,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
values
.
put
(
"id_stu"
,
id_stu
);
values
.
put
(
"id_stu"
,
id_stu
);
values
.
put
(
"id_picto"
,
picto
.
get_id
());
values
.
put
(
"id_picto"
,
picto
.
get_id
());
//TODO: Añadir aqui el id de escena activa para el estudiante
//TODO: Añadir aqui el id de escena activa para el estudiante
values
.
put
(
"id_scene"
,
PCBcontext
.
getPcbdb
().
getCurrentUser
()
.
get_active_scene
());
values
.
put
(
"id_scene"
,
this
.
currentUser
.
get_active_scene
());
values
.
put
(
"id_stupicto"
,
picto
.
get_stupicto_id
());
values
.
put
(
"id_stupicto"
,
picto
.
get_stupicto_id
());
values
.
put
(
"url"
,
picto
.
get_url
());
values
.
put
(
"url"
,
picto
.
get_url
());
values
.
put
(
"translation"
,
picto
.
get_translation
());
values
.
put
(
"translation"
,
picto
.
get_translation
());
...
...
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