lints
This commit is contained in:
parent
7f24933f4d
commit
9d5b4c9997
|
@ -156,7 +156,7 @@ class ActionsFragment : DaggerFragment() {
|
|||
pbLevelLabel = view.findViewById(R.id.pb_level_label)
|
||||
|
||||
profileSwitch?.setOnClickListener {
|
||||
ProfileSwitchDialog().show(childFragmentManager, "Actions")
|
||||
ProfileSwitchDialog().show(childFragmentManager, "ProfileSwitchDialog")
|
||||
}
|
||||
tempTarget?.setOnClickListener {
|
||||
TempTargetDialog().show(childFragmentManager, "Actions")
|
||||
|
|
|
@ -377,7 +377,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
|||
}
|
||||
|
||||
R.id.temp_target -> v.performClick()
|
||||
R.id.active_profile -> activity?.let { activity -> protectionCheck.queryProtection(activity, ProtectionCheck.Protection.BOLUS, UIRunnable { ProfileSwitchDialog().show(childFragmentManager, "Overview") }) }
|
||||
R.id.active_profile -> activity?.let { activity -> protectionCheck.queryProtection(activity, ProtectionCheck.Protection.BOLUS, UIRunnable { ProfileSwitchDialog().show(childFragmentManager, "ProfileSwitchDialog") }) }
|
||||
|
||||
}
|
||||
return false
|
||||
|
|
|
@ -212,7 +212,7 @@ class LocalProfileFragment : DaggerFragment() {
|
|||
binding.profileswitch.setOnClickListener {
|
||||
ProfileSwitchDialog()
|
||||
.also { it.arguments = Bundle().also { bundle -> bundle.putInt("profileIndex", localProfilePlugin.currentProfileIndex) } }
|
||||
.show(childFragmentManager, "NewNSTreatmentDialog")
|
||||
.show(childFragmentManager, "ProfileSwitchDialog")
|
||||
}
|
||||
|
||||
binding.reset.setOnClickListener {
|
||||
|
@ -259,7 +259,7 @@ class LocalProfileFragment : DaggerFragment() {
|
|||
updateGUI()
|
||||
}
|
||||
|
||||
fun updateGUI() {
|
||||
private fun updateGUI() {
|
||||
if (_binding == null) return
|
||||
val isValid = localProfilePlugin.isValidEditState()
|
||||
val isEdited = localProfilePlugin.isEdited
|
||||
|
|
|
@ -267,7 +267,7 @@ class SWDefinition @Inject constructor(
|
|||
.label(R.string.profileswitch_ismissing))
|
||||
.add(SWButton(injector)
|
||||
.text(R.string.doprofileswitch)
|
||||
.action { ProfileSwitchDialog().show(activity.supportFragmentManager, "SetupWizard") })
|
||||
.action { ProfileSwitchDialog().show(activity.supportFragmentManager, "ProfileSwitchDialog") })
|
||||
.validator { profileFunction.getProfile() != null }
|
||||
.visibility { profileFunction.getProfile() == null }
|
||||
private val screenPump = SWScreen(injector, R.string.configbuilder_pump)
|
||||
|
|
Loading…
Reference in a new issue