styles: do not enforce permission when it's not needed

Matches the javadocs now

Change-Id: I3e4c8b0ff118a55a0c082310e82752f1d9f2988b
Signed-off-by: Joey <joey@lineageos.org>
This commit is contained in:
Joey
2018-07-05 21:28:43 +02:00
committed by Joey Rizzoli
parent a737bf4dc6
commit 0efe50d196

View File

@@ -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<String> getTrustedAccents() {
enforceChangeStylePermission();
/*
* We need to clear the caller's identity in order to
* allow this method call to modify settings