Keep track of the installation status of AB updates

This allows to show the correct labels.

Change-Id: I52f42e042af0df2d091d786c03102cec352b3a5b
This commit is contained in:
Gabriele M
2017-11-30 23:41:00 +01:00
parent c5f36ee047
commit e66a8fa53a
6 changed files with 26 additions and 14 deletions

View File

@@ -67,6 +67,8 @@ class ABUpdateInstaller {
case UpdateEngine.UpdateStatusConstants.FINALIZING: {
int progress = Math.round(percent * 100);
mUpdaterController.getActualUpdate(mDownloadId).setInstallProgress(progress);
boolean finalizing = status == UpdateEngine.UpdateStatusConstants.FINALIZING;
mUpdaterController.getActualUpdate(mDownloadId).setFinalizing(finalizing);
mUpdaterController.notifyInstallProgress(mDownloadId);
}
break;