@@ -128,8 +128,6 @@ class ProfileEditFragment : Fragment() {
128128 // hors de [valueFrom, valueTo] — l'éditeur planterait à l'ouverture d'un ancien profil.
129129 var hvacTempSel = data.hvacTemp.coerceIn(HVAC_TEMP_MIN , HVAC_TEMP_MAX )
130130 var hvacFanSel = data.hvacFan.coerceIn(HVAC_FAN_MIN , HVAC_FAN_MAX )
131- var hvacDfSel = data.hvacDefrostFront
132- var hvacDrSel = data.hvacDefrostRear
133131 var hvacLoopSel = data.hvacLoopMode
134132 var hvacAirSel = data.hvacAirFlow // bits AirFlow, null = inchangé
135133 // Index 0/1/2, ou null quand le profil ne s'est jamais prononcé (créé avant la
@@ -302,16 +300,6 @@ class ProfileEditFragment : Fragment() {
302300 view.findViewById<MaterialButton >(R .id.btn_hvac_loop_auto),
303301 view.findViewById<MaterialButton >(R .id.btn_hvac_loop_none)
304302 )
305- val dfBtns = listOf (
306- view.findViewById<MaterialButton >(R .id.btn_hvac_df_off),
307- view.findViewById<MaterialButton >(R .id.btn_hvac_df_on),
308- view.findViewById<MaterialButton >(R .id.btn_hvac_df_none)
309- )
310- val drBtns = listOf (
311- view.findViewById<MaterialButton >(R .id.btn_hvac_dr_off),
312- view.findViewById<MaterialButton >(R .id.btn_hvac_dr_on),
313- view.findViewById<MaterialButton >(R .id.btn_hvac_dr_none)
314- )
315303 // Ligne « Air » : bouton → bit du profil. Cumulables, contrairement aux groupes ci-dessus.
316304 val airBtns = listOf (
317305 view.findViewById<MaterialButton >(R .id.btn_hvac_air_face) to AirFlow .FACE ,
@@ -333,7 +321,7 @@ class ProfileEditFragment : Fragment() {
333321 val actif = hvacEnabledSel
334322 val allume = actif && hvacPowerSel
335323 setBtnsEnabled(listOf (btnPower), actif)
336- setBtnsEnabled(listOf (btnAc, btnAuto) + loopBtns + dfBtns + drBtns +
324+ setBtnsEnabled(listOf (btnAc, btnAuto) + loopBtns +
337325 airBtns.map { it.first } + btnAirNone, allume)
338326 listOf (sldTemp, sldFan).forEach { it.isEnabled = allume }
339327 sldFan.isEnabled = allume && ! hvacAutoSel
@@ -349,12 +337,6 @@ class ProfileEditFragment : Fragment() {
349337 bindGroup(listOf (
350338 loopBtns[0 ] to 0 , loopBtns[1 ] to 1 , loopBtns[2 ] to 2 , loopBtns[3 ] to null
351339 ), hvacLoopSel) { hvacLoopSel = it }
352- bindGroup(listOf (
353- dfBtns[0 ] to false , dfBtns[1 ] to true , dfBtns[2 ] to null
354- ), hvacDfSel) { hvacDfSel = it }
355- bindGroup(listOf (
356- drBtns[0 ] to false , drBtns[1 ] to true , drBtns[2 ] to null
357- ), hvacDrSel) { hvacDrSel = it }
358340
359341 /* *
360342 * Ligne « Air » : « Inchangé » allumé ⇔ aucun bouton coché (null). Hors « Inchangé », le
@@ -731,8 +713,9 @@ class ProfileEditFragment : Fragment() {
731713 hvacAuto = hvacAutoSel,
732714 hvacTemp = hvacTempSel,
733715 hvacFan = hvacFanSel,
734- hvacDefrostFront = hvacDfSel,
735- hvacDefrostRear = hvacDrSel,
716+ // Anciennes lignes Dég. AV / AR : reprises dans hvacAirFlow à la lecture.
717+ hvacDefrostFront = null ,
718+ hvacDefrostRear = null ,
736719 hvacLoopMode = hvacLoopSel,
737720 hvacAirFlow = hvacAirSel,
738721 btDeviceMac = selectedBtMac // [BT-PROFILES]
0 commit comments