Login procedure fix

This commit is contained in:
CappielloAntonio 2021-07-28 18:28:47 +02:00
parent cb8597db66
commit b380ae160a
6 changed files with 31 additions and 39 deletions

View file

@ -47,7 +47,10 @@ public class App extends Application {
String token = PreferenceUtil.getInstance(context).getToken();
String salt = PreferenceUtil.getInstance(context).getSalt();
SubsonicPreferences preferences = new SubsonicPreferences(server, username, password, token, salt);
SubsonicPreferences preferences = new SubsonicPreferences();
preferences.setServerUrl(server);
preferences.setUsername(username);
preferences.setAuthentication(password, token, salt);
return new Subsonic(preferences);
}