diff options
author | Zak Cohen <zakcohen@google.com> | 2019-03-05 16:50:39 -0800 |
---|---|---|
committer | Zak Cohen <zakcohen@google.com> | 2019-03-11 21:36:19 +0000 |
commit | 3e12ac7434914cb131f54f4030a2e8ab04fe6f5c (patch) | |
tree | a68b4ebd675c9c9b112e47b991501834c13c1909 /services/contentsuggestions | |
parent | 79f2408ef759dd0faecad549a8feb154c76a70f9 (diff) |
ContentSuggestionsService - allow user manager to disable content suggestions.
Bug: 126227834
Test: compile
Change-Id: I2e8f4a87b1d4adf0d3dd591380d50ee28ae20379
Diffstat (limited to 'services/contentsuggestions')
-rw-r--r-- | services/contentsuggestions/java/com/android/server/contentsuggestions/ContentSuggestionsManagerService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/contentsuggestions/java/com/android/server/contentsuggestions/ContentSuggestionsManagerService.java b/services/contentsuggestions/java/com/android/server/contentsuggestions/ContentSuggestionsManagerService.java index 58dbea469b9c..69b4672213c4 100644 --- a/services/contentsuggestions/java/com/android/server/contentsuggestions/ContentSuggestionsManagerService.java +++ b/services/contentsuggestions/java/com/android/server/contentsuggestions/ContentSuggestionsManagerService.java @@ -32,6 +32,7 @@ import android.os.RemoteException; import android.os.ResultReceiver; import android.os.ShellCallback; import android.os.UserHandle; +import android.os.UserManager; import android.util.Slog; import com.android.server.LocalServices; @@ -63,7 +64,8 @@ public class ContentSuggestionsManagerService extends public ContentSuggestionsManagerService(Context context) { super(context, new FrameworkResourcesServiceNameResolver(context, - com.android.internal.R.string.config_defaultContentSuggestionsService), null); + com.android.internal.R.string.config_defaultContentSuggestionsService), + UserManager.DISALLOW_CONTENT_SUGGESTIONS); mActivityTaskManagerInternal = LocalServices.getService(ActivityTaskManagerInternal.class); } |