frag to acts with mapobox moving ptr demo #17
@ -30,7 +30,7 @@ public class StartupActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
private boolean isLoggedIn() {
|
||||
return this.getSharedPreferences("fmtPrefs", Context.MODE_PRIVATE).getBoolean("loggedIn",false);
|
||||
return this.getSharedPreferences("APP_PREF", Context.MODE_PRIVATE).getBoolean("loggedIn",false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -17,7 +17,7 @@ public class PrefUtils {
|
||||
|
||||
public static void storeApiKey(Context context, String apiKey) {
|
||||
SharedPreferences.Editor editor = getSharedPreferences(context).edit();
|
||||
editor.putString("API_KEY", apiKey);
|
||||
editor.putString("API_KEY", apiKey).putBoolean("loggedIn",true);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user