SetupWizard: better detect ProfileSwitch

This commit is contained in:
Milos Kozak 2022-05-20 10:53:09 +02:00
parent 6f358bc0c8
commit 0f10081ef7

View file

@ -268,8 +268,8 @@ class SWDefinition @Inject constructor(
.add(SWButton(injector) .add(SWButton(injector)
.text(R.string.doprofileswitch) .text(R.string.doprofileswitch)
.action { ProfileSwitchDialog().show(activity.supportFragmentManager, "ProfileSwitchDialog") }) .action { ProfileSwitchDialog().show(activity.supportFragmentManager, "ProfileSwitchDialog") })
.validator { profileFunction.getProfile() != null } .validator { profileFunction.getRequestedProfile() != null }
.visibility { profileFunction.getProfile() == null } .visibility { profileFunction.getRequestedProfile() == null }
private val screenPump = SWScreen(injector, R.string.configbuilder_pump) private val screenPump = SWScreen(injector, R.string.configbuilder_pump)
.skippable(false) .skippable(false)
.add(SWPlugin(injector, this) .add(SWPlugin(injector, this)