Skip to content

Commit

Permalink
fix state info error of downloading list
Browse files Browse the repository at this point in the history
change downloading state message from "upload waiting" to "download waiting"
  • Loading branch information
Logan676 committed Jun 16, 2015
1 parent 81d7b04 commit 771cfd8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ private void updateTaskView(TransferTaskInfo info, Viewholder viewHolder) {

switch (info.state) {
case INIT:
stateStr = mContext.getString(R.string.upload_waiting);
if (mTransferTaskType.equals(TaskType.DOWNLOAD_TASK))
stateStr = mContext.getString(R.string.download_waiting);
else if (mTransferTaskType.equals(TaskType.UPLOAD_TASK))
stateStr = mContext.getString(R.string.upload_waiting);
viewHolder.fileSize.setVisibility(View.INVISIBLE);
viewHolder.progressBar.setVisibility(View.INVISIBLE);
break;
Expand Down

0 comments on commit 771cfd8

Please sign in to comment.