From cd228b9a84696b70c8b09e3835e6b8003afe3e91 Mon Sep 17 00:00:00 2001 From: Hai Zhang Date: Tue, 3 Sep 2019 10:40:31 -0700 Subject: [PATCH] Add more doc for RoleControllerService.onIsApplicationVisibleForRole(). Fixes: 140410946 Test: presubmit Change-Id: Ib32a6fba238ee10959325c98273ad6e193ea2193 --- core/java/android/app/role/RoleControllerService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/app/role/RoleControllerService.java b/core/java/android/app/role/RoleControllerService.java index 85db6a45a1bd3..06623f93552a9 100644 --- a/core/java/android/app/role/RoleControllerService.java +++ b/core/java/android/app/role/RoleControllerService.java @@ -279,6 +279,10 @@ public abstract class RoleControllerService extends Service { /** * Check whether an application is visible for a role. * + * While an application can be qualified for a role, it can still stay hidden from user (thus + * not visible). If an application is visible for a role, we may show things related to the role + * for it, e.g. showing an entry pointing to the role settings in its application info page. + * * @param roleName name of the role to check for * @param packageName package name of the application to check for *