From c7f4c48a676539848d6c498c02f86d72962323a5 Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Sat, 15 Jul 2017 02:09:22 +0200 Subject: [PATCH] Allow to re-install the current update --- src/org/lineageos/updater/misc/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index cf91443..8fb3762 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -85,7 +85,7 @@ public class Utils { } public static boolean canInstall(Update update) { - return update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0) && + return update.getTimestamp() >= SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0) && update.getVersion().equalsIgnoreCase( SystemProperties.get(Constants.PROP_BUILD_VERSION)); }