Allow to re-install the current update
This commit is contained in:
@@ -85,7 +85,7 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean canInstall(Update update) {
|
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(
|
update.getVersion().equalsIgnoreCase(
|
||||||
SystemProperties.get(Constants.PROP_BUILD_VERSION));
|
SystemProperties.get(Constants.PROP_BUILD_VERSION));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user