Disable buttons while verifying updates
This commit is contained in:
@@ -101,7 +101,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.
|
||||
viewHolder.mButton2.setEnabled(false);
|
||||
} else {
|
||||
// Allow one active download
|
||||
boolean enabled = !mUpdaterController.hasActiveDownloads() && Utils.canInstall(update);
|
||||
boolean enabled = !mUpdaterController.hasActiveDownloads() &&
|
||||
Utils.canInstall(update) && !mUpdaterController.isVerifyingUpdate();
|
||||
int persistentStatus = update.getPersistentStatus();
|
||||
if (persistentStatus == UpdateStatus.Persistent.INCOMPLETE) {
|
||||
setButtonAction(viewHolder.mButton1, Action.RESUME, downloadId, enabled);
|
||||
|
||||
Reference in New Issue
Block a user