编辑排程状态

This commit is contained in:
fengjignqi
2026-05-27 17:08:57 +08:00
parent f7bee61a56
commit 47769d1003
2 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
package com.ckkj.water.plan;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import com.chad.library.adapter.base.BaseQuickAdapter;
@@ -48,6 +49,9 @@ public class BindDeviceFragment extends BaseFragment<PlanBindDeviceLayoutBinding
}
}
});
if (mPlanEntity != null) {
mPresenter.getPlanBindDevices(mPlanEntity);
}
}
private void initListener() {
@@ -86,9 +90,7 @@ public class BindDeviceFragment extends BaseFragment<PlanBindDeviceLayoutBinding
@Override
protected void onResumeInitData() {
super.onResumeInitData();
if (mPlanEntity != null) {
mPresenter.getPlanBindDevices(mPlanEntity);
}
}
/**
@@ -119,7 +121,16 @@ public class BindDeviceFragment extends BaseFragment<PlanBindDeviceLayoutBinding
@Override
public void planBindDeviceSuccess(BaseBean bean) {
hideDialogLoading();
ToastUtil.showShort(mContext, "绑定成功");
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
if (getActivity() instanceof AddWaterPlanActivity) {
((AddWaterPlanActivity) getActivity()).finish();
}
}
},800);
}
@Override