| | |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | import com.hdl.photovoltaic.widget.LoadingDialog; |
| | | |
| | | import org.greenrobot.eventbus.EventBus; |
| | | |
| | | import java.util.Locale; |
| | | |
| | |
| | | |
| | | |
| | | protected void unregisterEventBus() { |
| | | if (EventBus.getDefault().isRegistered(this)) { |
| | | EventBus.getDefault().unregister(this); |
| | | } |
| | | // if (EventBus.getDefault().isRegistered(this)) { |
| | | // EventBus.getDefault().unregister(this); |
| | | // } |
| | | } |
| | | |
| | | protected void registerEventBus() { |
| | | if (!EventBus.getDefault().isRegistered(this)) { |
| | | EventBus.getDefault().register(this); |
| | | } |
| | | // if (!EventBus.getDefault().isRegistered(this)) { |
| | | // EventBus.getDefault().register(this); |
| | | // } |
| | | } |
| | | |
| | | // @Subscribe(threadMode = ThreadMode.MAIN) |