Show download button if a download fails immediately

If the download fails without downloading any data, treat it as a
new file.
This commit is contained in:
Gabriele M
2017-07-17 12:25:49 +02:00
parent f496f0d0e7
commit b337452eeb

View File

@@ -213,11 +213,13 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.
case INSTALLING:
case VERIFYING:
case STARTING:
case PAUSED:
case DOWNLOADED:
case PAUSED_ERROR:
activeLayout = update.getPersistentStatus() != UpdateStatus.Persistent.VERIFIED;
break;
case PAUSED:
case PAUSED_ERROR:
activeLayout = update.getFile() != null && update.getFile().exists();
break;
default:
activeLayout = false;
}