login fixed

This commit is contained in:
Domagalski 2018-09-30 13:33:29 +02:00
parent 89ef83033b
commit 997765ddb5
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class StartupActivity extends AppCompatActivity {
} }
private boolean isLoggedIn() { 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 @Override

View File

@ -17,7 +17,7 @@ public class PrefUtils {
public static void storeApiKey(Context context, String apiKey) { public static void storeApiKey(Context context, String apiKey) {
SharedPreferences.Editor editor = getSharedPreferences(context).edit(); SharedPreferences.Editor editor = getSharedPreferences(context).edit();
editor.putString("API_KEY", apiKey); editor.putString("API_KEY", apiKey).putBoolean("loggedIn",true);
editor.commit(); editor.commit();
} }