mirror of
https://github.com/niushuai233/DevControl.git
synced 2024-10-27 22:43:20 +08:00
fix: 解决新增开关不选icon时报错问题
This commit is contained in:
parent
09a244d88d
commit
1a4ed9018e
@ -14,6 +14,7 @@ import cc.niushuai.project.devcontrol.base.util.CommonUiUtil;
|
||||
import cc.niushuai.project.devcontrol.base.util.IdWorker;
|
||||
import cc.niushuai.project.devcontrol.base.util.Keys;
|
||||
import cc.niushuai.project.devcontrol.base.util.ToastUtil;
|
||||
import cc.niushuai.project.devcontrol.base.util.UiUtil;
|
||||
import cc.niushuai.project.devcontrol.databinding.ActivityDeviceAddPowerSwitchBinding;
|
||||
import cc.niushuai.project.devcontrol.db.DB;
|
||||
import cc.niushuai.project.devcontrol.db.entity.Device;
|
||||
@ -41,6 +42,8 @@ public class DeviceAddPowerSwitchActivity extends BaseActivity {
|
||||
|
||||
// 设置标题栏信息
|
||||
this.setTitle(null, getString(R.string.power_switch_add), null, R.drawable.ic_confrim_32);
|
||||
|
||||
UiUtil.setAppImageCompatResource(this, R.id.device_add_select_icon, R.drawable.ic_device_type_switch);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user