| | |
| | | return; |
| | | } |
| | | |
| | | showLoading(); |
| | | |
| | | startRequest(position, mGatewayBean); |
| | | } |
| | | }); |
| | |
| | | * @param position 索引值 |
| | | */ |
| | | private void startRequest(int position, GatewayBean gatewayBean) { |
| | | showLoading(); |
| | | String title = getTitleList().get(position); |
| | | switch (title) { |
| | | case "搜索【所有】逆变器列表(0)": { |
| | |
| | | ConfirmationCancelDialog confirmationCancelDialog = new ConfirmationCancelDialog(_mActivity); |
| | | confirmationCancelDialog.show(); |
| | | confirmationCancelDialog.setTitle("提示!"); |
| | | confirmationCancelDialog.setContent("是否要解绑+\"" + mGatewayBean.getDevice_name() + "\"?"); |
| | | confirmationCancelDialog.setContent("是否要解绑\"" + mGatewayBean.getDevice_name() + "\"?"); |
| | | confirmationCancelDialog.setYesOnclickListener(new ConfirmationCancelDialog.onYesOnclickListener() { |
| | | @Override |
| | | public void Confirm() { |
| | |
| | | confirmationCancelDialog.setNoOnclickListener(new ConfirmationCancelDialog.onNoOnclickListener() { |
| | | @Override |
| | | public void Cancel() { |
| | | hideLoading(); |
| | | confirmationCancelDialog.dismiss(); |
| | | } |
| | | }); |