title: Delivering updated list elements via an otto event to Mortar's screen
body: <p>I'm trying to use <a href="http://www.reddit.com/r/androiddev/comments/1w63ro/simpler_android_apps_with_flow_and_mortar_eschews/" rel="nofollow">Mortar</a> for a simple application that shows a list of items based on <a href="https://github.com/square/mortar/tree/master/mortar-sample" rel="nofollow">mortar-sample</a>.</p>
  
  <p>I'm using <a href="http://www.mdswanson.com/blog/2014/04/07/durable-android-rest-clients.html" rel="nofollow">Retrofit/Gson</a> to fetch meta-data of these items and Otto to deliver updates to the view once the items are downloaded. I'm also using Dagger for objects creation.</p>
  
  <p>I've an <code>ItemList</code> class that implements <code>ListView</code> to disply the items in a list, and an <code>ItemListScreen</code> that implements <code>mortar.Blueprint</code>.</p>
  
  <p>I wonder where is the best place to put the subscribing method that will update the adapter items?
  Currently, I'm placing it under <code>ItemListScreen.Presenter</code> but the subscribe method is never called!!</p>
  
  <pre><code>@Layout(R.layout.item_list_view)
  public class ItemListScreen implements Blueprint {
      ...
  
      @Singleton
      public static class Presenter extends ViewPresenter&lt;ItemListView&gt; {
          ...
  
          @Subscribe
          public void onEvent(Event event){
              ItemListView view = getView();
              if(view == null) return;
              view.showItems(event.items);
          }
      }
  }
  </code></pre>