title: Android get EventBus event on fragment not working
body: <p>after define event class and post event on Activity <code>onBackPressed()</code> i cant get event on fragment, some my activities opening above this fragment which that is child of MainActivity. i want to get some events that post from other opening activitis, but my code doesnt get this event on Fragment, but i can post event from Activity <code>onBackPressed()</code></p>
  
  <p><strong>SignalActivityMarketDetailStateEvents class:</strong></p>
  
  <pre><code>public class SignalActivityMarketDetailStateEvents {
      private boolean activityMarketDetailState;
  
      public SignalActivityMarketDetailStateEvents(boolean activityMarketDetailState) {
          this.activityMarketDetailState = activityMarketDetailState;
      }
  
      public boolean isActivityMarketDetailState() {
          return activityMarketDetailState;
      }
  }
  </code></pre>
  
  <p><strong>ActivitySecond :</strong></p>
  
  <pre><code>@Override
  public void onBackPressed() {
      EventBus.getDefault().post(new SignalActivityMarketDetailStateEvents(true)); 
  }
  </code></pre>
  
  <p><strong>Fragment to get event:</strong></p>
  
  <pre><code>@Subscribe(threadMode = ThreadMode.MAIN)
  public void onEventMainThread(SignalActivityMarketDetailStateEvents event) {
      Log.e("EventBus ","Received");
  }
  
  @Override
  public void onStart() {
      EventBus.getDefault().register(this);
      super.onStart();
  }
  
  @Override
  public void onStop() {
      EventBus.getDefault().unregister(this);
      super.onStop();
  }
  
  @Override
  public void onResume() {
      EventBus.getDefault().register(this);
      super.onResume();
  }
  </code></pre>
  
  <p>in my Fragment this line doesnt work after post event:</p>
  
  <pre><code>Log.e("EventBus ","Received");
  </code></pre>