From 418d464d148bd9476e14c5ae2ca915a32d8376d2 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 23 Mar 2021 15:30:47 +0530 Subject: [PATCH] Updater: Show update's version on AlertDialog and Notification Currently at most of the places, build version is obtained from BuildInfoUtils.getBuildVersion() method. This method obtains build version from the current running system's property. However, in case there is a version bump on OTA, this logic results in wrong version being shown to the user while updating/upgrading the system. Get the version from the update itself to show the proper version in update notification and pre-install warning. Signed-off-by: Aayush Gupta Change-Id: Ia74085d8d7c067c408e7cfce1de90d49dcc68307 --- src/org/lineageos/updater/UpdatesListAdapter.java | 2 +- src/org/lineageos/updater/controller/UpdaterService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/lineageos/updater/UpdatesListAdapter.java b/src/org/lineageos/updater/UpdatesListAdapter.java index c06b4e04..608ad7ea 100644 --- a/src/org/lineageos/updater/UpdatesListAdapter.java +++ b/src/org/lineageos/updater/UpdatesListAdapter.java @@ -481,7 +481,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter