Added is_active field

revert-dabc3590
Chatura Dilan 9 years ago
parent 8b6fe27cab
commit f58abbe0db

@ -338,6 +338,9 @@ public class AndroidAPIUtils {
if (element.getAsJsonObject().get(AndroidConstants.ApplicationProperties.VERSION) != null) { if (element.getAsJsonObject().get(AndroidConstants.ApplicationProperties.VERSION) != null) {
app.setVersion(element.getAsJsonObject().get(AndroidConstants.ApplicationProperties.VERSION).getAsString()); app.setVersion(element.getAsJsonObject().get(AndroidConstants.ApplicationProperties.VERSION).getAsString());
} }
if (element.getAsJsonObject().get(AndroidConstants.ApplicationProperties.IS_ACTIVE) != null) {
app.setActive(element.getAsJsonObject().get(AndroidConstants.ApplicationProperties.VERSION).getAsBoolean());
}
applications.add(app); applications.add(app);
} }
getApplicationManagerService().updateApplicationListInstalledInDevice(deviceIdentifier, applications); getApplicationManagerService().updateApplicationListInstalledInDevice(deviceIdentifier, applications);

@ -128,6 +128,7 @@ public final class AndroidConstants {
public static final String USS = "USS"; public static final String USS = "USS";
public static final String VERSION = "version"; public static final String VERSION = "version";
public static final String ICON = "icon"; public static final String ICON = "icon";
public static final String IS_ACTIVE = "is_active";
} }
} }

Loading…
Cancel
Save