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
7837de75
authored
May 09, 2017
by
Germán Callejas Alcántara
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
cambios minimos en PCBDBHelper
parent
e587d51f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 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/User.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/PCBDBHelper.java
View file @
7837de75
...
...
@@ -82,7 +82,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
System
.
exit
(-
1
);
}
}
else
{
Log
.
e
(
LOG_TAG
,
"NO HAY USER EN USER
DETAIL CON ESE ID: "
+
sup
);
Log
.
e
(
LOG_TAG
,
"NO HAY USER EN USER
_
DETAIL CON ESE ID: "
+
sup
);
}
cursor
.
close
();
//db.close(); <--no es necesario cerrar la bbdd https://groups.google.com/forum/#!msg/android-developers/NwDRpHUXt0U/jIam4Q8-cqQJ
...
...
@@ -95,7 +95,8 @@ public class PCBDBHelper extends SQLiteOpenHelper {
* @see PCBDBHelper#setCurrentUser(User)
*/
public
User
getCurrentUser
()
{
if
(
this
.
currentUser
==
null
)
this
.
currentUser
=
loadLastUser
();
if
(
this
.
currentUser
==
null
)
this
.
currentUser
=
loadLastUser
();
return
this
.
currentUser
;
}
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/User.java
View file @
7837de75
...
...
@@ -251,7 +251,7 @@ public class User {
*/
public
int
get_active_scene
()
{
try
{
return
(
int
)
this
.
attributes_stu
.
ge
t
(
JSON_STUDENT_ATTTRS
.
ID_ACTIVE_SCENE
);
return
this
.
attributes_stu
.
getIn
t
(
JSON_STUDENT_ATTTRS
.
ID_ACTIVE_SCENE
);
}
catch
(
JSONException
e
)
{
e
.
printStackTrace
();
}
...
...
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