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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user