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 75cbe7627..e83e38714 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,21 +183,21 @@ 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"), KeyedAppState.SEVERITY_INFO); + enterpriseFeedback(getApplicationContext(), "automatic_inventory", "automatic_inventory option set successfully", appRestrictions.getBoolean("automatic_inventory").toString(), KeyedAppState.SEVERITY_INFO); AgentLog.e("EMM - set automatic inventory to " + appRestrictions.getBoolean("automatic_inventory")); editor.apply(); } if (appRestrictions.containsKey("frequency")) { editor.putString("timeInventory", appRestrictions.getString("frequency")); - enterpriseFeedback(getApplicationContext(), "frequency", "frequency option set successfully", appRestrictions.getBoolean("frequency"), KeyedAppState.SEVERITY_INFO); + enterpriseFeedback(getApplicationContext(), "frequency", "frequency option set successfully", appRestrictions.getString("frequency"), KeyedAppState.SEVERITY_INFO); AgentLog.e("EMM - set frequency to " + appRestrictions.getString("frequency")); editor.apply(); } 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"), KeyedAppState.SEVERITY_INFO); + enterpriseFeedback(getApplicationContext(), "auto_start_on_boot", "auto_start_on_boot option set successfully", appRestrictions.getBoolean("auto_start_on_boot").toString(), KeyedAppState.SEVERITY_INFO); AgentLog.e("EMM - set auto start on boot to " + appRestrictions.getBoolean("auto_start_on_boot")); editor.apply(); }