From 0efe50d1966a3d5256c626482f1d46cbd10ee876 Mon Sep 17 00:00:00 2001 From: Joey Date: Thu, 5 Jul 2018 21:28:43 +0200 Subject: [PATCH] styles: do not enforce permission when it's not needed Matches the javadocs now Change-Id: I3e4c8b0ff118a55a0c082310e82752f1d9f2988b Signed-off-by: Joey --- .../lineageos/platform/internal/StyleInterfaceService.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/StyleInterfaceService.java b/lineage/lib/main/java/org/lineageos/platform/internal/StyleInterfaceService.java index 7d841218..6000891e 100644 --- a/lineage/lib/main/java/org/lineageos/platform/internal/StyleInterfaceService.java +++ b/lineage/lib/main/java/org/lineageos/platform/internal/StyleInterfaceService.java @@ -295,7 +295,6 @@ public class StyleInterfaceService extends LineageSystemService { @Override public int getGlobalStyle() { - enforceChangeStylePermission(); /* * We need to clear the caller's identity in order to * allow this method call to modify settings @@ -323,7 +322,6 @@ public class StyleInterfaceService extends LineageSystemService { @Override public String getAccent() { - enforceChangeStylePermission(); /* * We need to clear the caller's identity in order to * allow this method call to modify settings @@ -337,7 +335,6 @@ public class StyleInterfaceService extends LineageSystemService { @Override public Suggestion getSuggestion(Bitmap source, int[] colors) { - enforceChangeStylePermission(); /* * We need to clear the caller's identity in order to * allow this method call to modify settings @@ -351,7 +348,6 @@ public class StyleInterfaceService extends LineageSystemService { @Override public List getTrustedAccents() { - enforceChangeStylePermission(); /* * We need to clear the caller's identity in order to * allow this method call to modify settings