排程部分功能优化,
解绑,删除,绑定
This commit is contained in:
@@ -4,6 +4,7 @@ import static android.view.View.GONE;
|
||||
import static android.view.View.VISIBLE;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
@@ -158,6 +159,17 @@ public class AddWaterPlanActivity extends BaseActivity<AddWaterPlanLayoutBinding
|
||||
}
|
||||
|
||||
if (!configFragment.isConfigSubmitted()) {
|
||||
// 校验新增排程的配置
|
||||
if (!mIsEditMode) {
|
||||
if (TextUtils.isEmpty(configFragment.getPlanName())) {
|
||||
ToastUtil.showShort(mContext, getString(R.string.plan_name_text_empty_hint));
|
||||
return;
|
||||
}
|
||||
if (!configFragment.hasTimeConfig()) {
|
||||
ToastUtil.showShort(mContext, "请至少配置一天的时间");
|
||||
return;
|
||||
}
|
||||
}
|
||||
showDialogtext(null, false, false, true,
|
||||
"提示", "关联设备需要保存排程配置,是否继续?",
|
||||
getString(R.string.cancel_text), "继续", new BaseFragment.OnDialogClick() {
|
||||
|
||||
Reference in New Issue
Block a user