Skip to content

Commit 9b4ffdc

Browse files
committed
#700 #691 Found issue with Blinds on the Switch adapter code
1 parent d6b3383 commit 9b4ffdc

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Diff for: app/src/main/java/nl/hnogames/domoticz/adapters/SwitchesAdapter.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -972,10 +972,8 @@ private void setPushOnOffSwitchRowData(DevicesInfo mDeviceInfo, DataObjectHolder
972972

973973
if (action) {
974974
holder.buttonOn.setText(context.getString(R.string.button_state_on));
975-
//holder.buttonOn.setBackground(ContextCompat.getDrawable(context, R.drawable.button_on));
976975
} else {
977976
holder.buttonOn.setText(context.getString(R.string.button_state_off));
978-
//holder.buttonOn.setBackground(ContextCompat.getDrawable(context, R.drawable.button_off));
979977
}
980978

981979
holder.buttonOn.setOnClickListener(v -> {
@@ -1023,12 +1021,12 @@ private void setBlindsRowData(final DevicesInfo mDeviceInfo,
10231021

10241022
holder.buttonUp.setTag(mDeviceInfo);
10251023
holder.buttonUp.setOnClickListener(view -> {
1026-
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.CLOSE);
1024+
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.OPEN);
10271025
});
10281026

10291027
holder.buttonStop.setTag(mDeviceInfo);
10301028
holder.buttonStop.setOnClickListener(view -> {
1031-
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.CLOSE);
1029+
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.STOP);
10321030
});
10331031

10341032
holder.buttonDown.setTag(mDeviceInfo);

Diff for: app/version.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Tue Feb 13 14:43:51 CET 2024
2-
VERSION_BUILD=9453
1+
#Mon Apr 01 20:03:45 CEST 2024
2+
VERSION_BUILD=9455
33
VERSION_CODE=687
44
VERSION_PATCH=370

Diff for: domoticzapi/version.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Tue Feb 13 14:43:51 CET 2024
1+
#Mon Apr 01 20:03:46 CEST 2024
22
VERSION_BUILD=3675
33
VERSION_CODE=254
44
VERSION_PATCH=254

0 commit comments

Comments
 (0)