From bf0e16045df62b1438eea4467fd0181a914e4169 Mon Sep 17 00:00:00 2001 From: Rafa Hernandez Date: Fri, 11 May 2018 15:01:09 -0400 Subject: [PATCH] fix(application): add trim on package name Signed-off-by: Rafa Hernandez --- .../java/org/flyve/mdm/agent/services/PoliciesController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/flyve/mdm/agent/services/PoliciesController.java b/app/src/main/java/org/flyve/mdm/agent/services/PoliciesController.java index 807ad86c0c..3b1aed4a74 100644 --- a/app/src/main/java/org/flyve/mdm/agent/services/PoliciesController.java +++ b/app/src/main/java/org/flyve/mdm/agent/services/PoliciesController.java @@ -570,7 +570,7 @@ public void resetPassword(String newPassword) { public void removePackage(String taskId, String packageName) { try { PoliciesFiles policiesFiles = new PoliciesFiles(PoliciesController.this.context); - policiesFiles.removeApk(packageName); + policiesFiles.removeApk(packageName.trim()); // return the status of the task sendTaskStatus(taskId, FEEDBACK_DONE);