Skip to content

Commit

Permalink
Fix HubUserSetupRequired Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Nov 26, 2024
1 parent 729c8a0 commit 4154a02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class UnlockVaultPresenter @Inject constructor(

fun onGoToHubProfileClicked(unverifiedVaultConfig: UnverifiedHubVaultConfig) {
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(unverifiedVaultConfig.apiBaseUrl.resolve("../app/profile").toString())
intent.data = Uri.parse(unverifiedVaultConfig.apiBaseUrl.resolve("../app/profile").toString())
requestActivityResult(ActivityResultCallbacks.onGoToHubProfileFinished(), intent)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class HubUserSetupRequiredDialog : BaseDialog<HubUserSetupRequiredDialog.Callbac
return builder.create()
}

public override fun setupView() {
override fun onStart() {
super.onStart()
val dialog = dialog as AlertDialog?
dialog?.let {
goToProfileButton = dialog.getButton(android.app.Dialog.BUTTON_POSITIVE)
Expand All @@ -51,6 +52,10 @@ class HubUserSetupRequiredDialog : BaseDialog<HubUserSetupRequiredDialog.Callbac
}
}

override fun setupView() {
// empty
}

companion object {

private const val VAULT_CONFIG_ARG = "vaultConfig"
Expand Down

0 comments on commit 4154a02

Please sign in to comment.