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

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

don't crash when receiving maintenance number

parent 704659fb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -271,10 +271,8 @@ public class Utils {
    public static boolean checkForNewUpdates(File newJson)
            throws IOException, JSONException {
        List<UpdateInfo> newList = parseJson(newJson, true);
        float currentVersion = Float.parseFloat(BuildInfoUtils.getBuildVersion());

        for (UpdateInfo update : newList) {
            if (Float.parseFloat(update.getVersion()) > currentVersion) {
            if (isCompatible(update)) {
                Log.d(TAG, "New compatiable update available");
                return true;
            }