SetupWizard: better detect ProfileSwitch
This commit is contained in:
parent
6f358bc0c8
commit
0f10081ef7
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue