profileModel = null;
}
public static void storeStartupProfileAndTheme(long currentProfileId, int currentTheme) {
- SharedPreferences prefs =
- instance.getSharedPreferences(PREF_NAME, MODE_PRIVATE);
+ SharedPreferences prefs = instance.getSharedPreferences(PREF_NAME, MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
- editor.putLong(PREF_PROFILE_ID,
- currentProfileId);
+ editor.putLong(PREF_PROFILE_ID, currentProfileId);
editor.putInt(PREF_THEME_HUE, currentTheme);
editor.apply();
}
if (profileModel != null)
return profileModel.getAuthUserName();
return Data.getProfile()
- .getAuthUserName();
+ .getAuthUser();
}
private String getAuthPassword() {
if (profileModel != null)
if (profileModel != null)
return profileModel.getUseAuthentication();
return Data.getProfile()
- .isAuthEnabled();
+ .useAuthentication();
}
@Override
public void onCreate() {