Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddc2c3de authored by Alexandre Roux's avatar Alexandre Roux
Browse files

fix bad cases

parent 5749d396
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ public class Utils {
                int updateMinorVersion = updateVersionParts[1];
                int updateMaintenanceVersion = updateVersionParts.length > 2 ? updateVersionParts[2] : 0;
				float thisUpdate = Float.parseFloat(updateMajorVersion + "." + updateMinorVersion);
				if (updateMajorVersion >= highestMajorVersion && updateMinorVersion >= highestMinorVersion && updateMaintenanceVersion >= highestMaintenanceVersion) {
				if (updateMajorVersion*10000+updateMinorVersion*100+updateMaintenanceVersion >= highestMajorVersion*10000+highestMinorVersion*100+highestMaintenanceVersion) {
                    highestMajorVersion = updateMajorVersion;
                    highestMinorVersion = updateMinorVersion;
					highestMaintenanceVersion = updateMaintenanceVersion;