@Subscribe
 public void onGetListPostsEvent(PostsEvent event) {
   // spinner.setVisibility(View.GONE);
   postsList = event.posts;
   //        ArrayList<HashMap<String, String>> posts = Post.postsInfoForItem(postsList);
   GlobalVariables.replyFromMyMarket = true;
   PostsAdapterOneProfile adapter =
       new PostsAdapterOneProfile(
           inflater,
           this.getActivity(),
           postsMarket,
           Post.orderDescPost(postsList),
           accessToken,
           currentUser);
   adapter.makeList();
   loading.setVisibility(View.INVISIBLE);
   if (postsList.isEmpty()) emptySearch.setVisibility(View.VISIBLE);
   else emptySearch.setVisibility(View.INVISIBLE);
 }
  @Subscribe
  public void onGetDeletedPostEvent(PostEvent event) {
    for (int i = 0; i < postsList.size(); i++) {
      if (postsList.get(i).id == event.post.id) {
        postsList.remove(i);
        break;
      }
    }

    PostsAdapterOneProfile adapter =
        new PostsAdapterOneProfile(
            inflater,
            this.getActivity(),
            postsMarket,
            Post.orderDescPost(postsList),
            accessToken,
            currentUser);
    adapter.makeList();
    loading.setVisibility(View.INVISIBLE);
    if (postsList.isEmpty()) emptySearch.setVisibility(View.VISIBLE);
    else emptySearch.setVisibility(View.INVISIBLE);
  }