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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user