https://github.com/square/ottoのヘルプが必要です。
私のアプリケーションでは、
ActivityBase
と :
@Override
protected void onResume() {
super.onResume();
SmartApplication.bus.register(this);
}
@Override
protected void onPause() {
super.onResume();
SmartApplication.bus.unregister(this);
}
ActivityOperationBase extends ActivityBase
と :
@Subscribe
public void onNextStepRequest(NextStepRequestEvent event) {
//...
}
ActivityMobile extends ActivityOperationBase
その中にFragmentCommonEnterMoney
。このフラグメントにはボタンがあります
SmartApplication.bus.post(new NextStepRequestEvent(/*params*/));
クリックします。でも着火しない
@Subscribe
public void onNextStepRequest(NextStepRequestEvent event) {
//...
}
私は何を間違っていますか?