Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 25 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 25 Rev 26
Línea 325... Línea 325...
325
        }
325
        }
326
    }
326
    }
Línea 327... Línea 327...
327
 
327
 
Línea 328... Línea 328...
328
    private void loadContinuecard(){
328
    private void loadContinuecard(){
Línea 329... Línea 329...
329
 
329
 
330
      //  Log.e("Cargo datos"," en tarjeta principal");
330
        Log.e("Cargo datos"," en tarjeta principal");
Línea 331... Línea 331...
331
 
331
 
332
        //Capsula de primera tarjeta
332
        //Capsula de primera tarjeta
Línea 333... Línea -...
333
        CapsuleDao capsuleDao = iTwoGetSkills.getDatabase().getCapsuleDao();
-
 
Línea 334... Línea 333...
334
 
333
        CapsuleDao capsuleDao = iTwoGetSkills.getDatabase().getCapsuleDao();
335
        Progress progress;
334
 
336
        ProgressDao progressDao = iTwoGetSkills.getDatabase().getProgressDao();
335
        Progress progress;
337
 
336
        ProgressDao progressDao = iTwoGetSkills.getDatabase().getProgressDao();
Línea 352... Línea 351...
352
                        progresoporcentaje.setVisibility(View.VISIBLE);
351
                        progresoporcentaje.setVisibility(View.VISIBLE);
353
                        progresotarjeta.setProgress((int) progress.getProgress());
352
                        progresotarjeta.setProgress((int) progress.getProgress());
354
                        progresoporcentaje.setText("" + progress.getProgress() + " %");
353
                        progresoporcentaje.setText("" + progress.getProgress() + " %");
355
                        empezar.setText("En curso");
354
                        empezar.setText("En curso");
Línea 356... Línea 355...
356
 
355
 
-
 
356
                        iTwoGetSkills.getPreference().setCapsuleUuidActive(dbCapsule.getUuid());
-
 
357
                        iTwoGetSkills.getPreference().setTopicUuidActive(dbCapsule.getTopicUuid());
Línea 357... Línea 358...
357
                        capsulafinal=dbCapsule;
358
                        iTwoGetSkills.getPreference().setOrigennavigation("welcome");
Línea 358... Línea 359...
358
 
359
 
359
                        if (dbCapsule.getImage() != null && !dbCapsule.getImage().equals("")) {
360
                        if (dbCapsule.getImage() != null && !dbCapsule.getImage().equals("")) {
Línea 415... Línea 416...
415
                        progresotarjeta.setVisibility(View.INVISIBLE);
416
                        progresotarjeta.setVisibility(View.INVISIBLE);
416
                        progresoporcentaje.setVisibility(View.INVISIBLE);
417
                        progresoporcentaje.setVisibility(View.INVISIBLE);
417
                        empezar.setText("Nueva");
418
                        empezar.setText("Nueva");
418
                        continuar.setText("Ver cápsula");
419
                        continuar.setText("Ver cápsula");
Línea -... Línea 420...
-
 
420
 
419
 
421
 
-
 
422
                    iTwoGetSkills.getPreference().setCapsuleUuidActive(dbCapsule.getUuid());
-
 
423
                    iTwoGetSkills.getPreference().setTopicUuidActive(dbCapsule.getTopicUuid());
Línea 420... Línea 424...
420
                        capsulafinal=dbCapsule;
424
                    iTwoGetSkills.getPreference().setOrigennavigation("welcome");
Línea 421... Línea 425...
421
 
425
 
422
                    if (dbCapsule.getImage() != null && !dbCapsule.getImage().equals("")) {
426
                    if (dbCapsule.getImage() != null && !dbCapsule.getImage().equals("")) {
Línea 515... Línea 519...
515
 
519
 
Línea 516... Línea -...
516
 
-
 
517
 
-
 
518
        }
-
 
519
 
520
 
Línea 520... Línea -...
520
 
-
 
521
        Capsule finalCapsulafinal = capsulafinal;
-
 
522
 
-
 
-
 
521
 
523
        continuar.setOnClickListener(v -> {
522
        }
Línea 524... Línea 523...
524
 
523
 
525
            iTwoGetSkills.getPreference().setCapsuleUuidActive(finalCapsulafinal.getUuid());
524
        continuar.setOnClickListener(v -> {