| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void onBackPressed() { |
| | | super.onBackPressed(); |
| | | sendEventBus(); |
| | | } |
| | | |
| | | private void sendEventBus() { |
| | | HdlCommonLogic.getInstance().postEventBus(ConstantManage.homepage_title_tab_switch, ConstantManage.station_edit); |
| | | finish(); |
| | | } |
| | | |
| | | private void initEvent() { |
| | | //返回按钮 |
| | | viewBinding.toolbarTopFragmentHouseListRl.topBackLl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | BaseEventBus baseEventBus = new BaseEventBus(); |
| | | baseEventBus.setTopic(ConstantManage.homepage_title_tab_switch); |
| | | baseEventBus.setType(HomepageTitleTabSwitch.powerstation.toString()); |
| | | EventBus.getDefault().post(baseEventBus); |
| | | finish(); |
| | | sendEventBus(); |
| | | } |
| | | }); |
| | | |