Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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

Rev 19 Rev 28
Línea 33... Línea 33...
33
 
33
 
34
    //Device
34
    //Device
35
    private String deviceUuid;
35
    private String deviceUuid;
Línea -... Línea 36...
-
 
36
    private String deviceToken;
36
    private String deviceToken;
37
 
37
 
38
 
38
    public static Preference getInstance(Context context)
39
    public static Preference getInstance(Context context)
39
    {
40
    {
40
        if (instance == null) {
41
        if (instance == null) {
Línea 211... Línea 212...
211
 
212
 
212
 
213
 
Línea -... Línea 214...
-
 
214
        SharedPreferences sharedPreferences = context.getSharedPreferences(
213
        SharedPreferences sharedPreferences = context.getSharedPreferences(
215
                Constants.PREFERENCE_FILENAME, Context.MODE_PRIVATE);
214
                Constants.PREFERENCE_FILENAME, Context.MODE_PRIVATE);
216
 
215
 
217
 
216
        deviceUuid = sharedPreferences.getString("device_uuid" , "");
218
        deviceUuid = sharedPreferences.getString("device_uuid" , "");
217
        deviceToken = sharedPreferences.getString("device_token" , "");
219
        deviceToken = sharedPreferences.getString("device_token" , "");
Línea 267... Línea 269...
267
        editor.putInt("company_count", companyCount);
269
        editor.putInt("company_count", companyCount);
268
        editor.putString("last_capsule_uuid_active", lastCapsuleUuidActive);
270
        editor.putString("last_capsule_uuid_active", lastCapsuleUuidActive);
269
        editor.putString("origennavigation",origennavigation);
271
        editor.putString("origennavigation",origennavigation);
270
        editor.apply();
272
        editor.apply();
271
    }
273
    }
-
 
274
 
-
 
275
 
-
 
276
 
272
}
277
}