diff --git a/app/src/main/java/org/glpi/inventory/agent/ui/ActivityMain.java b/app/src/main/java/org/glpi/inventory/agent/ui/ActivityMain.java index e83e38714..a78c87e3d 100644 --- a/app/src/main/java/org/glpi/inventory/agent/ui/ActivityMain.java +++ b/app/src/main/java/org/glpi/inventory/agent/ui/ActivityMain.java @@ -183,7 +183,7 @@ private void resolveRestrictions() { if (appRestrictions.containsKey("automatic_inventory")) { editor.putBoolean("autoStartInventory", appRestrictions.getBoolean("automatic_inventory")); - enterpriseFeedback(getApplicationContext(), "automatic_inventory", "automatic_inventory option set successfully", appRestrictions.getBoolean("automatic_inventory").toString(), KeyedAppState.SEVERITY_INFO); + enterpriseFeedback(getApplicationContext(), "automatic_inventory", "automatic_inventory option set successfully", appRestrictions.getBoolean("automatic_inventory") ? "true" : "false", KeyedAppState.SEVERITY_INFO); AgentLog.e("EMM - set automatic inventory to " + appRestrictions.getBoolean("automatic_inventory")); editor.apply(); } @@ -197,7 +197,7 @@ private void resolveRestrictions() { if (appRestrictions.containsKey("auto_start_on_boot")) { editor.putBoolean("boot", appRestrictions.getBoolean("auto_start_on_boot")); - enterpriseFeedback(getApplicationContext(), "auto_start_on_boot", "auto_start_on_boot option set successfully", appRestrictions.getBoolean("auto_start_on_boot").toString(), KeyedAppState.SEVERITY_INFO); + enterpriseFeedback(getApplicationContext(), "auto_start_on_boot", "auto_start_on_boot option set successfully", appRestrictions.getBoolean("auto_start_on_boot") ? "true" : "false", KeyedAppState.SEVERITY_INFO); AgentLog.e("EMM - set auto start on boot to " + appRestrictions.getBoolean("auto_start_on_boot")); editor.apply(); }