Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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

Rev 53 Rev 56
Línea 93... Línea 93...
93
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
93
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
94
                             Bundle savedInstanceState) {
94
                             Bundle savedInstanceState) {
Línea 95... Línea 95...
95
 
95
 
96
 
-
 
-
 
96
 
Línea 97... Línea 97...
97
        iTwoGetSkills = (ITwoGetSkills) getActivity();
97
        iTwoGetSkills = (ITwoGetSkills) getActivity();
Línea 98... Línea 98...
98
        iTwoGetSkills.showNavigationAndToolbar();
98
 
99
 
99
 
Línea 253... Línea 253...
253
            Toast.makeText(getContext(), ""+message, Toast.LENGTH_LONG).show();
253
            Toast.makeText(getContext(), ""+message, Toast.LENGTH_LONG).show();
Línea 254... Línea 254...
254
 
254
 
Línea 255... Línea 255...
255
            iTwoGetSkills.saveNotificationCenter("Contenidos disponibles","",message);
255
            iTwoGetSkills.saveNotificationCenter("Contenidos disponibles","",message);
-
 
256
 
-
 
257
        });
256
 
258
        iTwoGetSkills.showNavigationAndToolbar();
257
        });
259
 
Línea 258... Línea 260...
258
        return view;
260
        return view;
259
    }
261
    }
Línea 678... Línea 680...
678
                    m_li.put("progress", String.valueOf(dbProgress.getProgress()));
680
                    m_li.put("progress", String.valueOf(dbProgress.getProgress()));
679
                    m_li.put("completado",String.valueOf(dbProgress.getCompleted()));
681
                    m_li.put("completado",String.valueOf(dbProgress.getCompleted()));
680
                    m_li.put("agregado",dbProgress.getAddedOn());
682
                    m_li.put("agregado",dbProgress.getAddedOn());
Línea -... Línea 683...
-
 
683
 
-
 
684
 
-
 
685
                    if(capsule == null)
-
 
686
                    {
-
 
687
                        Log.e("El objeto es"," nulo");
681
 
688
                    }
682
 
689
                    else {
683
                    m_li.put("imagen", capsule.getImage());
690
                        m_li.put("imagen", capsule.getImage());
684
                    m_li.put("nombre", capsule.getName());
691
                        m_li.put("nombre", capsule.getName());
685
                    m_li.put("uuid", capsule.getUuid());
692
                        m_li.put("uuid", capsule.getUuid());
-
 
693
                        m_li.put("topicuuid", capsule.getTopicUuid());
Línea 686... Línea 694...
686
                    m_li.put("topicuuid", capsule.getTopicUuid());
694
                        m_li.put("description", capsule.getDescription());
687
                    m_li.put("description", capsule.getDescription());
695
 
Línea 710... Línea 718...
710
                    capsuleList.add(m_li);
718
                    capsuleList.add(m_li);
711
                }
719
                }
Línea 712... Línea 720...
712
 
720
 
713
            }
721
            }
714
        }}
722
        }}
Línea 715... Línea 723...
715
                }}
723
                }}}
Línea 716... Línea 724...
716
 
724
 
717
       else if (tabposition.equals("finalizados")){
725
       else if (tabposition.equals("finalizados")){
Línea 733... Línea 741...
733
                m_li.put("total", String.valueOf(dbProgress.getTotalSlides()));
741
                m_li.put("total", String.valueOf(dbProgress.getTotalSlides()));
734
                m_li.put("progress", String.valueOf(dbProgress.getProgress()));
742
                m_li.put("progress", String.valueOf(dbProgress.getProgress()));
735
                m_li.put("completado",String.valueOf(dbProgress.getCompleted()));
743
                m_li.put("completado",String.valueOf(dbProgress.getCompleted()));
736
                m_li.put("agregado",dbProgress.getAddedOn());
744
                m_li.put("agregado",dbProgress.getAddedOn());
Línea -... Línea 745...
-
 
745
 
-
 
746
                if(capsule == null)
-
 
747
                {
-
 
748
                    Log.e("El objeto esta", "nulo");
-
 
749
                }
Línea 737... Línea 750...
737
 
750
                else{
738
 
751
 
739
                m_li.put("imagen", capsule.getImage());
752
                m_li.put("imagen", capsule.getImage());
740
                m_li.put("nombre", capsule.getName());
753
                m_li.put("nombre", capsule.getName());
Línea 765... Línea 778...
765
                   }
778
                   }
Línea 766... Línea 779...
766
 
779
 
767
               }
780
               }
768
           }
781
           }
769
    }
782
    }
Línea 770... Línea 783...
770
                }}
783
                }}}
Línea 782... Línea 795...
782
        iTwoGetSkills.getPreference().setCapsuleUuidActive(capsuleList.get(position).get("uuid"));
795
        iTwoGetSkills.getPreference().setCapsuleUuidActive(capsuleList.get(position).get("uuid"));
783
        iTwoGetSkills.getPreference().setTopicUuidActive(capsuleList.get(position).get("topicuuid"));
796
        iTwoGetSkills.getPreference().setTopicUuidActive(capsuleList.get(position).get("topicuuid"));
784
        iTwoGetSkills.invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
797
        iTwoGetSkills.invokeFragment(Constants.IDX_FRAGMENT_SLIDES);
Línea 785... Línea 798...
785
 
798
 
-
 
799
        iTwoGetSkills.getPreference().setOrigennavigation("welcome");
786
        iTwoGetSkills.getPreference().setOrigennavigation("welcome");
800
        iTwoGetSkills.hideKeyboard(v); //Ocultamos el teclado
Línea 787... Línea 801...
787
       // Log.e("Completada",""+capsuleList.get(position).get("completado"));
801
       // Log.e("Completada",""+capsuleList.get(position).get("completado"));
Línea 788... Línea 802...
788
 
802
 
789
       // Log.e("Capsula","topic active"+mDataSet.get(viewHolder.getAbsoluteAdapterPosition()).get("topicuuid"));
-
 
790
 
803
       // Log.e("Capsula","topic active"+mDataSet.get(viewHolder.getAbsoluteAdapterPosition()).get("topicuuid"));
-
 
804