Background task refactor & fetch user profile during login proccess #19

Merged
s416204 merged 11 commits from sharing-tab-rest into develop 2018-10-14 13:56:22 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 997765ddb5 - Show all commits

View File

@ -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

View File

@ -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();
}