Proyectos de Subversion Android Microlearning

Rev

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

Rev 24 Rev 25
Línea 307... Línea 307...
307
            preference = new Preference(this);
307
            preference = new Preference(this);
308
        } else {
308
        } else {
309
            preference.load(this);
309
            preference.load(this);
310
        }
310
        }
Línea -... Línea 311...
-
 
311
 
-
 
312
        if(TextUtils.isEmpty(preference.getUserUuid())) {
-
 
313
 
-
 
314
            //Verifico que el teclado no vaya a relanzar el fragment de intro al usar Google Smartlock para traer
-
 
315
            //Informacion de inicio de sesion almacenada en su cuenta personal de Google
-
 
316
            if (!issmartlockloginrun) {
-
 
317
                invokeFragment(Constants.IDX_FRAGMENT_INTRO);
-
 
318
                issmartlockloginrun= true;
-
 
319
            }
-
 
320
 
-
 
321
 
-
 
322
        } else {
-
 
323
            if(preference.getFragmentIdxActive() == 0) {
-
 
324
                invokeFragment(Constants.IDX_FRAGMENT_TOPICS);
-
 
325
            } else {
-
 
326
                invokeFragment(preference.getFragmentIdxActive());
-
 
327
            }
-
 
328
        }
Línea 311... Línea 329...
311
 
329
 
Línea 312... Línea 330...
312
 
330
 
313
    }
331
    }
Línea 712... Línea 730...
712
            if(fragmentHashMap.containsKey(fragmentKeyActual)) {
730
            if(fragmentHashMap.containsKey(fragmentKeyActual)) {
713
                fragment = fragmentHashMap.get(fragmentKeyActual);
731
                fragment = fragmentHashMap.get(fragmentKeyActual);
714
                if(fragment != null) {
732
                if(fragment != null) {
715
                    FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
733
                    FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
716
                    fragmentTransaction.hide(fragment);
734
                    fragmentTransaction.hide(fragment);
717
                    fragmentTransaction.commit();
735
                    fragmentTransaction.commitAllowingStateLoss();
718
                }
736
                }
719
            }
737
            }
720
        }
738
        }
Línea 721... Línea 739...
721
 
739
 
Línea 864... Línea 882...
864
        if(add) {
882
        if(add) {
865
            fragmentHashMap.put(fragmentKeyNuevo, fragment);
883
            fragmentHashMap.put(fragmentKeyNuevo, fragment);
Línea 866... Línea 884...
866
 
884
 
867
            FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
885
            FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
868
            fragmentTransaction.add(R.id.fragment_container, fragment, fragmentKeyNuevo);
886
            fragmentTransaction.add(R.id.fragment_container, fragment, fragmentKeyNuevo);
869
            fragmentTransaction.commit();
887
            fragmentTransaction.commitAllowingStateLoss();
Línea 870... Línea 888...
870
        }
888
        }
871
 
889
 
872
 
890
 
873
        if(fragment != null) {
891
        if(fragment != null) {
874
            FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
892
            FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
Línea 875... Línea 893...
875
            fragmentTransaction.show(fragment);
893
            fragmentTransaction.show(fragment);
Línea 876... Línea 894...
876
            fragmentTransaction.commit();
894
            fragmentTransaction.commitAllowingStateLoss();