コード例 #1
0
 @Subscribe
 public void loadPromptCards(LoadPromptEvent event) {
   _view.hideProgressBar();
   List<PromptCard> promptCards = event.getEventList();
   if (promptCards != null) {
     _view.displayContent(promptCards);
   }
 }
コード例 #2
0
 @Subscribe
 public void processQueryResult(QueryResult result) {
   Bundle bundle = new Bundle();
   bundle.putInt(SolutionFragment.SOLUTION_ID_TAG, result.getId());
   bundle.putString(SolutionFragment.SOLUTION_TAGS, result.getTagString());
   _view.changeFragment(DualFragmentActivity.VIEW_SOLUTION_ID, bundle);
 }
コード例 #3
0
 @Override
 public void getData() {
   _view.showProgressBar();
   _repository.getPrompts();
 }
コード例 #4
0
 @Subscribe
 public void checkForNewNotifications(LoadNotificationEvent event) {
   boolean hasNewRecommendations = event.hasNewNotification();
   _view.hasNewRecommendations(hasNewRecommendations);
 }