This commit is contained in:
parent
d8c215eacc
commit
4ad4a23ed8
@ -99,8 +99,8 @@ class SelfossApi(private val appSettingsService: AppSettingsService) {
|
||||
}
|
||||
|
||||
// Api version was introduces after the POST login, so when there is a version, it should be available
|
||||
fun shouldHavePostLogin() = appSettingsService.getApiVersion() != -1
|
||||
fun hasLoginInfo() =
|
||||
private fun shouldHavePostLogin() = appSettingsService.getApiVersion() != -1
|
||||
private fun hasLoginInfo() =
|
||||
appSettingsService.getUserName().isNotEmpty() && appSettingsService.getPassword()
|
||||
.isNotEmpty()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user