fix: 添加完设备自我销毁

This commit is contained in:
niushuai233 2022-10-21 16:29:27 +08:00
parent 2d623297a6
commit b6ba206511

View File

@ -82,6 +82,7 @@ public class DeviceAddPowerSwitchActivity extends BaseActivity {
ToastUtil.show(this, StrUtil.format("设备: {} 已新增", device.getName())); ToastUtil.show(this, StrUtil.format("设备: {} 已新增", device.getName()));
this.finish();
ActivityUtil.startActivity(this, PowerSwitchActivity.class, new String[]{Keys.ID}, new String[]{device.getId()}); ActivityUtil.startActivity(this, PowerSwitchActivity.class, new String[]{Keys.ID}, new String[]{device.getId()});
} }
} }