SetupWizard: better detect ProfileSwitch
This commit is contained in:
parent
6f358bc0c8
commit
0f10081ef7
|
@ -268,8 +268,8 @@ class SWDefinition @Inject constructor(
|
|||
.add(SWButton(injector)
|
||||
.text(R.string.doprofileswitch)
|
||||
.action { ProfileSwitchDialog().show(activity.supportFragmentManager, "ProfileSwitchDialog") })
|
||||
.validator { profileFunction.getProfile() != null }
|
||||
.visibility { profileFunction.getProfile() == null }
|
||||
.validator { profileFunction.getRequestedProfile() != null }
|
||||
.visibility { profileFunction.getRequestedProfile() == null }
|
||||
private val screenPump = SWScreen(injector, R.string.configbuilder_pump)
|
||||
.skippable(false)
|
||||
.add(SWPlugin(injector, this)
|
||||
|
|
Loading…
Reference in a new issue