Skip to content

Commit

Permalink
to string
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Sep 6, 2024
1 parent 3ecdfdb commit 5c3adaf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5c3adaf

Please sign in to comment.