Improve download button text

This commit is contained in:
seven332 committed 2016-03-24 19:56:37 +08:00
1 parent be8e03e99d
commit 43df2a5887
1 file changed
+8 -2
@@ -1308,17 +1308,23 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
switch (mDownloadState) {
default:
case DownloadInfo.STATE_INVALID:
case DownloadInfo.STATE_NONE:
mDownload.setText(R.string.download);
break;
case DownloadInfo.STATE_NONE:
mDownload.setText(R.string.download_state_none);
break;
case DownloadInfo.STATE_WAIT:
mDownload.setText(R.string.download_state_wait);
break;
case DownloadInfo.STATE_DOWNLOAD:
mDownload.setText(R.string.download_state_downloading);
break;
case DownloadInfo.STATE_FINISH:
case DownloadInfo.STATE_FAILED:
mDownload.setText(R.string.download_state_downloaded);
break;
case DownloadInfo.STATE_FAILED:
mDownload.setText(R.string.download_state_failed);
break;
}
}