fix:修复房间设置-标签修改异常

This commit is contained in:
Max
2023-11-07 11:23:06 +08:00
parent c5155aed0d
commit b935216b6e

View File

@@ -537,7 +537,9 @@ public class RoomSettingActivity extends BaseMvpActivity<IRoomSettingView, RoomS
}
List<String> labels = new ArrayList<>();
for (RoomSettingTabInfo tabInfo : tabInfoList) {
labels.add(tabInfo.getName());
if (tabInfo.getName() != null) {
labels.add(tabInfo.getName());
}
}
new SelectLabelDialog(this, "房间标签", labels, roomInfo.getRoomTag(), (label, data, position) -> {
mSelectTabInfo = tabInfoList.get(position);
@@ -567,7 +569,9 @@ public class RoomSettingActivity extends BaseMvpActivity<IRoomSettingView, RoomS
}
List<String> labels = new ArrayList<>();
for (SingleRoomSortInfo tabInfo : tabInfoList) {
labels.add(tabInfo.getSortName());
if (tabInfo.getSortName() != null) {
labels.add(tabInfo.getSortName());
}
}
new SelectLabelDialog(this, "房间分类", labels, roomInfo.getRoomTag(), (label, data, position) -> {
singleRoomSortId = tabInfoList.get(position).getId();