Allow to keep incompatible updates when parsing jsons
The condition was wrong and incompatible updates were always discarded regardless of the flag passed. Change-Id: Iefc2d64b841921eb77a9f73cf374b63b477d2588
This commit is contained in:
@@ -130,7 +130,7 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
UpdateInfo update = parseJsonUpdate(updatesList.getJSONObject(i));
|
UpdateInfo update = parseJsonUpdate(updatesList.getJSONObject(i));
|
||||||
if (compatibleOnly && isCompatible(update)) {
|
if (!compatibleOnly || isCompatible(update)) {
|
||||||
updates.add(update);
|
updates.add(update);
|
||||||
} else {
|
} else {
|
||||||
Log.d(TAG, "Ignoring incompatible update " + update.getName());
|
Log.d(TAG, "Ignoring incompatible update " + update.getName());
|
||||||
|
Reference in New Issue
Block a user