| | |
| | | import com.hdl.photovoltaic.enums.DebugStatus; |
| | | import com.hdl.photovoltaic.enums.DebugType; |
| | | import com.hdl.photovoltaic.enums.HomepageTitleTabSwitch; |
| | | import com.hdl.photovoltaic.enums.Languages; |
| | | import com.hdl.photovoltaic.enums.LowerTagType; |
| | | import com.hdl.photovoltaic.enums.PowerStationStatus; |
| | | import com.hdl.photovoltaic.enums.ProjectOperation; |
| | |
| | | }); |
| | | |
| | | |
| | | |
| | | //电站搜索 |
| | | viewBinding.powerStationSearchClickCl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | |
| | | delayedConfirmationCancelDialog.show(); |
| | | delayedConfirmationCancelDialog.isHideTitle(true); |
| | | String homeName = "\"" + houseIdBean.getHomeName() + "\""; |
| | | String placeholder = UserConfigManage.getInstance().getCurrentAppLanguage().equals(Languages.ar) ? "s%" : "%s"; |
| | | if (isWaitDelivered) { |
| | | //"是否将电站的调试状态回退到调试中" |
| | | delayedConfirmationCancelDialog.setContent(getString(R.string.debug_status_rollback).replace("%s", homeName)); |
| | | delayedConfirmationCancelDialog.setContent(getString(R.string.debug_status_rollback).replace(placeholder, homeName)); |
| | | } else { |
| | | delayedConfirmationCancelDialog.startCountdown(4); |
| | | delayedConfirmationCancelDialog.setContent(getString(R.string.delete_power_station).replace("%s", homeName)); |
| | | delayedConfirmationCancelDialog.setContent(getString(R.string.delete_power_station).replace(placeholder, homeName)); |
| | | } |
| | | delayedConfirmationCancelDialog.setYesOnclickListener(new DelayedConfirmationCancelDialog.onYesOnclickListener() { |
| | | @Override |