Skip to content

Commit

Permalink
disabled animations, did useful stuff, & it appears issue #5 is back :P
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Apr 17, 2017
1 parent ac52cc2 commit 0fc3193
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,11 @@ public void onBindViewHolder(ItemData.ViewHolder holder, int position) {
} catch (ClassCastException e) {
e.printStackTrace();
}

holder.itemView.setAlpha(0);
holder.itemView.animate().alpha(1).setDuration(500).start();
}

@Override
public int getItemViewType(int position) {
ItemData data = items.get(position);
for (int i = 0; i < items.size(); i++) {
if (items.get(i).getClass().equals(data.getClass())) return i;
}

return -1;
return position;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ protected void done(@Nullable String result) {
manager.setStackFromEnd(true);
holder.recyclerView.setLayoutManager(manager);
holder.recyclerView.setAdapter(new ItemAdapter(getContext(), attachments));
} else holder.recyclerView.setVisibility(View.GONE);
} else {
holder.recyclerView.setAdapter(null);
holder.recyclerView.setVisibility(View.GONE);
}
}

public static class ViewHolder extends ItemData.ViewHolder {
Expand Down

0 comments on commit 0fc3193

Please sign in to comment.