Report installation failures

Change-Id: I5e11db1e6e338a510b3c1c7d16f8c085d874a9db
This commit is contained in:
Gabriele M
2017-11-30 23:41:00 +01:00
parent e02b8a0b00
commit 63f6fd1a70
3 changed files with 12 additions and 2 deletions

View File

@@ -187,7 +187,9 @@ public class UpdaterService extends Service {
}
} catch (IOException e) {
Log.e(TAG, "Could not install update", e);
// TODO: user facing message
mUpdaterController.getActualUpdate(downloadId)
.setStatus(UpdateStatus.INSTALLATION_FAILED);
mUpdaterController.notifyUpdateChange(downloadId);
}
} else if (ACTION_INSTALL_STOP.equals(intent.getAction())) {
if (UpdateInstaller.isInstalling()) {