Pass wizard type to pod activation wizard
This commit is contained in:
parent
eac0c9a224
commit
c3cc4728e3
1 changed files with 10 additions and 1 deletions
|
@ -63,7 +63,16 @@ class ErosPodManagementActivity : NoSplashAppCompatActivity() {
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
|
|
||||||
binding.buttonActivatePod.setOnClickListener {
|
binding.buttonActivatePod.setOnClickListener {
|
||||||
startActivity(Intent(this, PodActivationWizardActivity::class.java))
|
val type: PodActivationWizardActivity.Type = if (podStateManager.isPodInitialized
|
||||||
|
and podStateManager.activationProgress.isAtLeast(ActivationProgress.PRIMING_COMPLETED)) {
|
||||||
|
PodActivationWizardActivity.Type.SHORT
|
||||||
|
} else {
|
||||||
|
PodActivationWizardActivity.Type.LONG
|
||||||
|
}
|
||||||
|
|
||||||
|
val intent = Intent(this, PodActivationWizardActivity::class.java)
|
||||||
|
intent.putExtra(PodActivationWizardActivity.KEY_TYPE, type)
|
||||||
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.buttonDeactivatePod.setOnClickListener {
|
binding.buttonDeactivatePod.setOnClickListener {
|
||||||
|
|
Loading…
Reference in a new issue