@@ -161,22 +161,22 @@ class UnlockVaultPresenter @Inject constructor(
161161 } else if (unverifiedVaultConfig.isPresent && unverifiedVaultConfig.get().keyLoadingStrategy() == KeyLoadingStrategy .HUB ) {
162162 val unverifiedHubVaultConfig = unverifiedVaultConfig.get() as UnverifiedHubVaultConfig
163163 if (! isConsistentHubConfig(unverifiedHubVaultConfig)) {
164- Timber .tag(" VaultListPresenter " ).e(" Inconsistent hub config detected. Denying access to protect the user." )
164+ Timber .tag(" UnlockVaultPresenter " ).e(" Inconsistent hub config detected. Denying access to protect the user." )
165165 Toast .makeText(context(), R .string.error_hub_not_trustworthy, Toast .LENGTH_LONG ).show()
166166 finish()
167167 } else if (configContainsAllowedHosts(unverifiedHubVaultConfig) && ! isHttpHost(unverifiedHubVaultConfig)) {
168168 allowedHubHosts(unverifiedHubVaultConfig, vault)
169169 } else if (isCryptomatorCloud(unverifiedHubVaultConfig) && ! isHttpHost(unverifiedHubVaultConfig)) {
170170 allowedHubHosts(unverifiedHubVaultConfig, vault)
171171 } else if (isCryptomatorCloud(unverifiedHubVaultConfig) && isHttpHost(unverifiedHubVaultConfig)) {
172- Timber .tag(" VaultListPresenter " ).e(" Cryptomator Cloud with http is not supported." )
172+ Timber .tag(" UnlockVaultPresenter " ).e(" Cryptomator Cloud with http is not supported." )
173173 Toast .makeText(context(), R .string.error_hub_not_trustworthy, Toast .LENGTH_LONG ).show()
174174 finish()
175175 } else if (! isHttpHost(unverifiedHubVaultConfig)) {
176176 val hostnames = setOf (unverifiedHubVaultConfig.apiBaseUrl.authority, unverifiedHubVaultConfig.authEndpoint.authority).toTypedArray()
177177 view?.showDialog(HubCheckHostAuthenticityDialog .newInstance(hostnames, unverifiedHubVaultConfig, vault))
178178 } else {
179- Timber .tag(" VaultListPresenter " ).e(" Cryptomator is not allowed to connect to " + unverifiedHubVaultConfig.apiBaseUrl.authority)
179+ Timber .tag(" UnlockVaultPresenter " ).e(" Cryptomator is not allowed to connect to " + unverifiedHubVaultConfig.apiBaseUrl.authority)
180180 Toast .makeText(context(), R .string.error_hub_not_trustworthy, Toast .LENGTH_LONG ).show()
181181 finish()
182182 }
@@ -517,7 +517,7 @@ class UnlockVaultPresenter @Inject constructor(
517517 }
518518
519519 override fun onError (e : Throwable ) {
520- Timber .tag(" VaultListPresenter " ).e(e, " Error while removing vault passwords" )
520+ Timber .tag(" UnlockVaultPresenter " ).e(e, " Error while removing vault passwords" )
521521 finishWithResult(null )
522522 }
523523 })
0 commit comments