From 05150dacbfee1f77a981a7c06e222c56ea0c737c Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Thu, 30 Nov 2017 23:41:00 +0100 Subject: [PATCH] Keep track of the installation status of AB updates This allows to show the correct labels. Change-Id: I52f42e042af0df2d091d786c03102cec352b3a5b --- res/values/strings.xml | 1 - .../lineageos/updater/UpdatesListAdapter.java | 5 ++++- .../updater/controller/ABUpdateInstaller.java | 2 ++ .../updater/controller/UpdaterService.java | 19 +++++++------------ src/org/lineageos/updater/model/Update.java | 11 +++++++++++ .../lineageos/updater/model/UpdateInfo.java | 2 ++ 6 files changed, 26 insertions(+), 14 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 1171c645..fa83f06d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -79,7 +79,6 @@ LineageOS %1$s - %2$s %1$s of %2$s %1$s of %2$s - %3$s left - Installing update Verifying update No new updates found. To manually check for new updates, use the Refresh button. diff --git a/src/org/lineageos/updater/UpdatesListAdapter.java b/src/org/lineageos/updater/UpdatesListAdapter.java index eed3b3b5..aee52c3f 100644 --- a/src/org/lineageos/updater/UpdatesListAdapter.java +++ b/src/org/lineageos/updater/UpdatesListAdapter.java @@ -160,7 +160,10 @@ public class UpdatesListAdapter extends RecyclerView.Adapter