Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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

Rev 17 Rev 18
Línea 471... Línea 471...
471
 
471
 
Línea 472... Línea 472...
472
        continuar.setOnClickListener(v -> {
472
        continuar.setOnClickListener(v -> {
473
 
473
 
474
            iTwoGetSkills.getPreference().setCapsuleUuidActive(finalCapsulafinal.getUuid());
-
 
-
 
474
            iTwoGetSkills.getPreference().setCapsuleUuidActive(finalCapsulafinal.getUuid());
-
 
475
            iTwoGetSkills.getPreference().setTopicUuidActive(finalCapsulafinal.getTopicUuid());
Línea 475... Línea 476...
475
            iTwoGetSkills.getPreference().setTopicUuidActive(finalCapsulafinal.getTopicUuid());
476
            iTwoGetSkills.getPreference().setOrigennavigation("welcome");
476
 
477
            Log.e("Guardo",""+iTwoGetSkills.getPreference().getOrigenNavigation());
Línea 477... Línea 478...
477
 
478
 
Línea 537... Línea 538...
537
                    m_li.put("view", String.valueOf(progress.getViewSlides()));
538
                    m_li.put("view", String.valueOf(progress.getViewSlides()));
538
                    m_li.put("total", String.valueOf(progress.getTotalSlides()));
539
                    m_li.put("total", String.valueOf(progress.getTotalSlides()));
539
                    m_li.put("progress", String.valueOf(progress.getProgress()));
540
                    m_li.put("progress", String.valueOf(progress.getProgress()));
540
                    m_li.put("completado",String.valueOf(progress.getCompleted()));
541
                    m_li.put("completado",String.valueOf(progress.getCompleted()));
Línea -... Línea 542...
-
 
542
 
-
 
543
                    if(progress.getCompleted()==0)
-
 
544
                    {
-
 
545
                        Log.e("Capsula"+capsule.getName()," NO completa");
-
 
546
                    }
541
 
547
 
Línea 542... Línea 548...
542
                }
548
                }
543
 
549
 
544
                m_li.put("imagen", capsule.getImage());
550
                m_li.put("imagen", capsule.getImage());
Línea 554... Línea 560...
554
 
560
 
Línea 555... Línea 561...
555
                if (slides.isEmpty()) {
561
                if (slides.isEmpty()) {
556
 
562
 
-
 
563
                  //  Log.e("Capsula","Es omitida, no tiene slides");
-
 
564
                } else {
557
                  //  Log.e("Capsula","Es omitida, no tiene slides");
565
 
Línea 558... Línea 566...
558
                } else {
566
 
559
                    if (tabposition.equals("pendientes") && progress == null) {
567
                    if (tabposition.equals("pendientes") && progress == null) {
Línea 566... Línea 574...
566
                                capsuleList.add(m_li);
574
                                capsuleList.add(m_li);
567
                            }
575
                            }
Línea 568... Línea 576...
568
 
576
 
Línea 569... Línea 577...
569
                        }
577
                        }
Línea 570... Línea 578...
570
 
578
 
571
                    } else if (tabposition.equals("cursando") && progress != null && progress.getProgress() < 100 && capsule.getCompleted()==0) {
579
                    } else if (tabposition.equals("cursando") && progress != null && progress.getProgress() <= 100 && progress.getCompleted()==0) {
Línea 572... Línea 580...
572
 
580
 
Línea 578... Línea 586...
578
                                capsuleList.add(m_li);
586
                                capsuleList.add(m_li);
579
                            }
587
                            }
Línea 580... Línea 588...
580
 
588
 
Línea 581... Línea 589...
581
                        }
589
                        }
Línea 582... Línea 590...
582
 
590
 
583
                    } else if (tabposition.equals("finalizados") && progress != null && progress.getProgress() >= 100 && capsule.getCompleted()==1) {
591
                    } else if (tabposition.equals("finalizados") && progress != null && progress.getProgress() >= 100 && progress.getCompleted()==1) {
584
 
592
 
Línea 618... Línea 626...
618
 
626
 
619
        iTwoGetSkills.getPreference().setCapsuleUuidActive(capsuleList.get(position).get("uuid"));
627
        iTwoGetSkills.getPreference().setCapsuleUuidActive(capsuleList.get(position).get("uuid"));
620
        iTwoGetSkills.getPreference().setTopicUuidActive(capsuleList.get(position).get("topicuuid"));
628
        iTwoGetSkills.getPreference().setTopicUuidActive(capsuleList.get(position).get("topicuuid"));
Línea -... Línea 629...
-
 
629
        iTwoGetSkills.invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
-
 
630
 
-
 
631
        iTwoGetSkills.getPreference().setOrigennavigation("welcome");
621
        iTwoGetSkills.invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
632
        Log.e("Completada",""+capsuleList.get(position).get("completado"));
Línea 622... Línea 633...
622
 
633
 
623
       // Log.e("Capsula","topic active"+mDataSet.get(viewHolder.getAbsoluteAdapterPosition()).get("topicuuid"));
634
       // Log.e("Capsula","topic active"+mDataSet.get(viewHolder.getAbsoluteAdapterPosition()).get("topicuuid"));
624
 
635