Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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

Rev 18 Rev 19
Línea 1... Línea 1...
1
package com.cesams.twogetskills.preference;
1
package com.cesams.twogetskills.preference;
Línea 2... Línea 2...
2
 
2
 
3
import android.content.Context;
3
import android.content.Context;
-
 
4
import android.content.SharedPreferences;
-
 
5
import android.util.Log;
4
import android.content.SharedPreferences;
6
 
Línea 5... Línea 7...
5
import com.cesams.twogetskills.Constants;
7
import com.cesams.twogetskills.Constants;
Línea 6... Línea 8...
6
 
8
 
Línea 202... Línea 204...
202
        this.context = context;
204
        this.context = context;
203
        this.load();
205
        this.load();
Línea 204... Línea 206...
204
 
206
 
Línea 205... Línea 207...
205
    }
207
    }
206
 
208
 
Línea 207... Línea 209...
207
    public void load()
209
    public synchronized void load()
208
    {
210
    {
Línea 233... Línea 235...
233
        companyCount = sharedPreferences.getInt("company_count", 0);
235
        companyCount = sharedPreferences.getInt("company_count", 0);
234
        lastCapsuleUuidActive = sharedPreferences.getString("last_capsule_uuid_active", "");
236
        lastCapsuleUuidActive = sharedPreferences.getString("last_capsule_uuid_active", "");
235
        origennavigation = sharedPreferences.getString("origennavigation","");
237
        origennavigation = sharedPreferences.getString("origennavigation","");
236
    }
238
    }
Línea 237... Línea 239...
237
 
239
 
238
    public void save()
240
    public synchronized void save()
-
 
241
    {
-
 
242
 
239
    {
243
 
240
        SharedPreferences sharedPreferences = context.getSharedPreferences(
244
        SharedPreferences sharedPreferences = context.getSharedPreferences(
Línea 241... Línea 245...
241
                Constants.PREFERENCE_FILENAME, Context.MODE_PRIVATE);
245
                Constants.PREFERENCE_FILENAME, Context.MODE_PRIVATE);
242
 
246