From 82a6587cbe48228cb90eead0081556da1d099255 Mon Sep 17 00:00:00 2001 From: LabyStudio Date: Fri, 6 Jan 2023 03:57:05 +0100 Subject: [PATCH] update spotify api, initialize api async, version 1.5.6 --- build.gradle | 4 ++-- .../de/labystudio/desktopmodules/spotify/SpotifyAddon.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 11b6e58..eac3f5a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'com.github.LabyStudio' -version '1.5.5' +version '1.5.6' compileJava { sourceCompatibility = '1.8' @@ -21,7 +21,7 @@ build { dependencies { implementation 'com.github.LabyStudio:desktopmodules:2.5.5:all' - implementation 'com.github.LabyStudio:java-spotify-api:1.1.5:all' + implementation 'com.github.LabyStudio:java-spotify-api:1.1.7:all' //implementation project(':desktopmodules-core') } diff --git a/src/main/java/de/labystudio/desktopmodules/spotify/SpotifyAddon.java b/src/main/java/de/labystudio/desktopmodules/spotify/SpotifyAddon.java index 310d24a..3f5eea2 100644 --- a/src/main/java/de/labystudio/desktopmodules/spotify/SpotifyAddon.java +++ b/src/main/java/de/labystudio/desktopmodules/spotify/SpotifyAddon.java @@ -38,7 +38,7 @@ public void onDisconnect(Exception exception) { // Initialize api after modules are registered if (this.hasActiveModules()) { - this.spotifyAPI.initialize(); + this.spotifyAPI.initializeAsync(); } this.initialized = true; } @@ -47,7 +47,7 @@ public void onDisconnect(Exception exception) { public void onEnable() { // Don't initialize api before modules are registered if (this.initialized) { - this.spotifyAPI.initialize(); + this.spotifyAPI.initializeAsync(); } }