diff --git a/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetActivity.java b/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetActivity.java index a5091f3..68f8834 100644 --- a/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetActivity.java +++ b/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetActivity.java @@ -11,6 +11,7 @@ import cc.niushuai.project.devcontrol.base.ui.BaseActivity; import cc.niushuai.project.devcontrol.base.util.ActivityUtil; import cc.niushuai.project.devcontrol.base.util.GlobalVariables; import cc.niushuai.project.devcontrol.base.util.Keys; +import cc.niushuai.project.devcontrol.base.util.ToastUtil; import cc.niushuai.project.devcontrol.databinding.ActivityPowerSwitchSetBinding; public class PowerSwitchSetActivity extends BaseActivity { @@ -46,7 +47,7 @@ public class PowerSwitchSetActivity extends BaseActivity { } private void outsideIconChangeClickListener(View view) { - Toast.makeText(this, "更换图标暂未实现哦", Toast.LENGTH_SHORT).show(); + ToastUtil.show(this, "更换图标暂未实现哦"); } private void outsideParamSetClickListener(View view) { @@ -57,7 +58,7 @@ public class PowerSwitchSetActivity extends BaseActivity { } private void outsideLogViewClickListener(View view) { - Toast.makeText(this, "日志暂未实现哦", Toast.LENGTH_SHORT).show(); + ToastUtil.show(this, "日志暂未实现哦"); } @Override diff --git a/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetParamActivity.java b/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetParamActivity.java index 9346857..40c0d85 100644 --- a/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetParamActivity.java +++ b/app/src/main/java/cc/niushuai/project/devcontrol/ui/powerswitch/PowerSwitchSetParamActivity.java @@ -9,6 +9,7 @@ import androidx.annotation.Nullable; import cc.niushuai.project.devcontrol.R; import cc.niushuai.project.devcontrol.base.ui.BaseActivity; import cc.niushuai.project.devcontrol.base.util.GlobalVariables; +import cc.niushuai.project.devcontrol.base.util.ToastUtil; import cc.niushuai.project.devcontrol.databinding.ActivityPowerSwitchSetParamBinding; @@ -47,7 +48,7 @@ public class PowerSwitchSetParamActivity extends BaseActivity { private void btnSaveParamClickListener(View view) { - Toast.makeText(this, "已保存", Toast.LENGTH_SHORT).show(); + ToastUtil.show(this, "已保存"); } @Override