Skip to content

Commit 5a7fa9e

Browse files
committed
Cleanup
1 parent a4888a3 commit 5a7fa9e

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

presentation/src/main/java/org/cryptomator/presentation/presenter/UnlockVaultPresenter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ class UnlockVaultPresenter @Inject constructor(
219219
}
220220

221221
private fun isHttpHost(unverifiedHubVaultConfig: UnverifiedHubVaultConfig): Boolean {
222-
return "http".equals(unverifiedHubVaultConfig.apiBaseUrl.scheme, ignoreCase = true) || "http".equals(unverifiedHubVaultConfig.authEndpoint.scheme, ignoreCase = true)
222+
return "http".equals(unverifiedHubVaultConfig.apiBaseUrl.scheme, ignoreCase = true)
223+
|| "http".equals(unverifiedHubVaultConfig.authEndpoint.scheme, ignoreCase = true)
223224
}
224225

225226
private fun getAuthority(uri: URI): String {

presentation/src/main/java/org/cryptomator/presentation/ui/activity/UnlockVaultActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ class UnlockVaultActivity : BaseActivity<ActivityUnlockVaultBinding>(ActivityUnl
195195
}
196196

197197
override fun onHubCheckHostsDenied(unverifiedHubVaultConfig: UnverifiedHubVaultConfig) {
198-
// todo toast
199198
finish()
200199
}
201200

presentation/src/main/java/org/cryptomator/presentation/ui/dialog/HubCheckHostAuthenticityDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class HubCheckHostAuthenticityDialog : BaseDialog<HubCheckHostAuthenticityDialog
3838

3939
public override fun setupView() {
4040
val hostnames = requireArguments().getSerializable(HOSTNAMES_ARG) as Array<String>
41-
binding.tvHostnames.text = hostnames.sorted().joinToString(separator = "\n")
41+
binding.tvHostnames.text = hostnames.sorted().joinToString(separator = "\n") { "$it" }
4242
}
4343

4444
companion object {

presentation/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@
336336

337337
<!-- ## screen: hub -->
338338
<string name="screen_hub_title" translatable="false">Hub</string>
339-
<string name="screen_hub_allow_unknown_hub_hosts_title">Allow Unknown Hub Hosts</string>
340339
<string name="screen_hub_clear_unknown_hub_hosts_title">Clear Unknown Hub Hosts</string>
341340

342341
<!-- # dialogs -->

0 commit comments

Comments
 (0)