Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 58 | Rev 65 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 58 Rev 63
Línea 1268... Línea 1268...
1268
 
1268
 
1269
        preference.setCapsuleUuidActive(capsuleUuid);
1269
        preference.setCapsuleUuidActive(capsuleUuid);
1270
        preference.setSlideUuidActive("");
1270
        preference.setSlideUuidActive("");
Línea -... Línea 1271...
-
 
1271
        preference.save();
-
 
1272
 
-
 
1273
        Progress progress; ProgressDao progressDao = getDatabase().getProgressDao();
-
 
1274
        progress = progressDao.selectByCapsuleUuid(capsuleUuid);
-
 
1275
 
-
 
1276
        if(progress != null) {
-
 
1277
            if (progress.getProgress() >= 100 && progress.getCompleted() == 1) {
1271
        preference.save();
1278
                invokeFragment(Constants.IDX_FRAGMENT_DETAIL_CAPSULE);
-
 
1279
            } else {
-
 
1280
                invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
-
 
1281
            }
-
 
1282
        }
1272
 
1283
        else
-
 
1284
        {
-
 
1285
            invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
1273
     //   invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
1286
 
Línea 1274... Línea 1287...
1274
        invokeFragment(Constants.IDX_FRAGMENT_DETAIL_CAPSULE);
1287
        }
1275
    }
1288
    }
1276
 
1289