Added creating the client again after setting the minimum API version to NULL

This commit is contained in:
Nite 2020-10-15 14:34:10 +02:00
parent 4e6df12f4e
commit eb3ce0db8a
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ internal class EditServerActivity : AppCompatActivity() {
if (currentServerSetting?.minimumApiVersion != null) { if (currentServerSetting?.minimumApiVersion != null) {
currentServerSetting!!.minimumApiVersion = null currentServerSetting!!.minimumApiVersion = null
serverSettingsModel.updateItem(currentServerSetting) serverSettingsModel.updateItem(currentServerSetting)
if (
activeServerProvider.getActiveServer().id ==
currentServerSetting!!.id
) {
MusicServiceFactory.resetMusicService()
}
} }
} }
} }