Skip to content

Commit

Permalink
#700 #691 Found issue with Blinds on the Switch adapter code
Browse files Browse the repository at this point in the history
  • Loading branch information
galadril committed Apr 1, 2024
1 parent d6b3383 commit 9b4ffdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -972,10 +972,8 @@ private void setPushOnOffSwitchRowData(DevicesInfo mDeviceInfo, DataObjectHolder

if (action) {
holder.buttonOn.setText(context.getString(R.string.button_state_on));
//holder.buttonOn.setBackground(ContextCompat.getDrawable(context, R.drawable.button_on));
} else {
holder.buttonOn.setText(context.getString(R.string.button_state_off));
//holder.buttonOn.setBackground(ContextCompat.getDrawable(context, R.drawable.button_off));
}

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

holder.buttonUp.setTag(mDeviceInfo);
holder.buttonUp.setOnClickListener(view -> {
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.CLOSE);
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.OPEN);
});

holder.buttonStop.setTag(mDeviceInfo);
holder.buttonStop.setOnClickListener(view -> {
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.CLOSE);
handleBlindsClick((DevicesInfo) view.getTag(), DomoticzValues.Device.Blind.Action.STOP);
});

holder.buttonDown.setTag(mDeviceInfo);
Expand Down
4 changes: 2 additions & 2 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Feb 13 14:43:51 CET 2024
VERSION_BUILD=9453
#Mon Apr 01 20:03:45 CEST 2024
VERSION_BUILD=9455
VERSION_CODE=687
VERSION_PATCH=370
2 changes: 1 addition & 1 deletion domoticzapi/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Feb 13 14:43:51 CET 2024
#Mon Apr 01 20:03:46 CEST 2024
VERSION_BUILD=3675
VERSION_CODE=254
VERSION_PATCH=254

0 comments on commit 9b4ffdc

Please sign in to comment.