summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2013-04-12 22:33:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-12 22:33:05 +0000
commite107aa43866ce06cd08a7a3f2500a22bf81bbe79 (patch)
treee9f8639685b7dcf237b7ea04427ceca69538c5ac /core/java
parent0a41431d697a34e7fe4ed2c481484d7a63949037 (diff)
parent46bc4ebb87232b39d7b02ac0135c8ccf2c33f233 (diff)
Merge "Rename isUserRestricted to isUserLimited" into jb-mr2-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/UserManager.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index e08c6ea7b403..c61bf840af61 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -198,16 +198,15 @@ public class UserManager {
}
/**
- * Used to check if the user making this call is a restricted user. Restricted users may have
- * application restrictions imposed on them. All apps should default to the most restrictive
- * version, unless they have specific restrictions available through a call to
- * {@link Context#getApplicationRestrictions()}.
+ * Used to check if the user making this call is a limited user. Limited users may have
+ * a reduced number of available apps, app restrictions and account restrictions.
+ * @return whether the user making this call is a limited user
*/
- public boolean isUserRestricted() {
+ public boolean isUserLimited() {
try {
return mService.isRestricted();
} catch (RemoteException re) {
- Log.w(TAG, "Could not check if user restricted ", re);
+ Log.w(TAG, "Could not check if user is limited ", re);
return false;
}
}