| Línea 28... |
Línea 28... |
| 28 |
import com.cesams.twogetskills.dao.TopicDao;
|
28 |
import com.cesams.twogetskills.dao.TopicDao;
|
| 29 |
import com.cesams.twogetskills.library.Http;
|
29 |
import com.cesams.twogetskills.library.Http;
|
| 30 |
import com.cesams.twogetskills.library.MD5;
|
30 |
import com.cesams.twogetskills.library.MD5;
|
| 31 |
import com.cesams.twogetskills.entity.Progress;
|
31 |
import com.cesams.twogetskills.entity.Progress;
|
| 32 |
import com.cesams.twogetskills.entity.Topic;
|
32 |
import com.cesams.twogetskills.entity.Topic;
|
| - |
|
33 |
import com.cesams.twogetskills.preference.Preference;
|
| 33 |
import com.cesams.twogetskills.skeleton.ITwoGetSkills;
|
34 |
import com.cesams.twogetskills.skeleton.ITwoGetSkills;
|
| 34 |
import com.cesams.twogetskills.viewmodel.TopicViewModel;
|
35 |
import com.cesams.twogetskills.viewmodel.TopicViewModel;
|
| Línea 35... |
Línea 36... |
| 35 |
|
36 |
|
| 36 |
import org.json.JSONException;
|
37 |
import org.json.JSONException;
|
| Línea 259... |
Línea 260... |
| 259 |
message = item.toString();
|
260 |
message = item.toString();
|
| 260 |
}
|
261 |
}
|
| 261 |
}
|
262 |
}
|
| Línea 262... |
Línea 263... |
| 262 |
|
263 |
|
| - |
|
264 |
if (success) {
|
| - |
|
265 |
Preference preference = iTwoGetSkills.getPreference();
|
| - |
|
266 |
|
| 263 |
if (success) {
|
267 |
|
| 264 |
iTwoGetSkills.getDatabase().getAnswerDao().removeAll();
|
268 |
iTwoGetSkills.getDatabase().getAnswerDao().removeAll();
|
| 265 |
iTwoGetSkills.getDatabase().getQuestionDao().removeAll();
|
269 |
iTwoGetSkills.getDatabase().getQuestionDao().removeAll();
|
| 266 |
iTwoGetSkills.getDatabase().getQuizDao().removeAll();
|
270 |
iTwoGetSkills.getDatabase().getQuizDao().removeAll();
|
| 267 |
iTwoGetSkills.getDatabase().getSlideDao().removeAll();
|
271 |
iTwoGetSkills.getDatabase().getSlideDao().removeAll();
|
| 268 |
iTwoGetSkills.getDatabase().getCapsuleDao().removeAll();
|
272 |
iTwoGetSkills.getDatabase().getCapsuleDao().removeAll();
|
| 269 |
iTwoGetSkills.getDatabase().getTopicDao().removeAll();
|
273 |
iTwoGetSkills.getDatabase().getTopicDao().removeAll();
|
| 270 |
iTwoGetSkills.getDatabase().getUserExtendedDao().removeAll();
|
- |
|
| - |
|
274 |
iTwoGetSkills.getDatabase().getUserExtendedDao().removeAll();
|
| - |
|
275 |
iTwoGetSkills.getDatabase().getUserLogDao().removeAllUserUuidNotEqual(preference.getUserUuid());
|
| Línea 271... |
Línea 276... |
| 271 |
|
276 |
iTwoGetSkills.getDatabase().getProgressDao().removeAllUserUuidNotEqual(preference.getUserUuid());
|
| 272 |
|
277 |
|