diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-10-09 15:36:59 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-10-09 17:00:31 -0700 |
commit | a8a9bd65bf5865d83ef44f54552ca39522bfbcf0 (patch) | |
tree | 2487c59160d21ab84f7890724ec9adae5ea8af53 /core/java/android/app/IActivityManager.java | |
parent | 3b9e7f32380e179aa1e0718762e86ffa24cbab93 (diff) | |
download | frameworks_base-a8a9bd65bf5865d83ef44f54552ca39522bfbcf0.zip frameworks_base-a8a9bd65bf5865d83ef44f54552ca39522bfbcf0.tar.gz frameworks_base-a8a9bd65bf5865d83ef44f54552ca39522bfbcf0.tar.bz2 |
Fix issue #7311376: Add API to allow apps to know if they are...
...running as the foreground user
Add UserManager.isUserRunning() which is the public version of the
existing method on ActivityManager.
Also add UserManager.isUserRunningOrStopping() since that seems like
it will be useful.
And fix the internal function that returns the array of currently
running users to not include stopped users.
Change-Id: I84672fa8748fc027fd402729586b5603f640e498
Diffstat (limited to 'core/java/android/app/IActivityManager.java')
-rw-r--r-- | core/java/android/app/IActivityManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/IActivityManager.java b/core/java/android/app/IActivityManager.java index da844ef..97250e9 100644 --- a/core/java/android/app/IActivityManager.java +++ b/core/java/android/app/IActivityManager.java @@ -326,7 +326,7 @@ public interface IActivityManager extends IInterface { public boolean switchUser(int userid) throws RemoteException; public int stopUser(int userid, IStopUserCallback callback) throws RemoteException; public UserInfo getCurrentUser() throws RemoteException; - public boolean isUserRunning(int userid) throws RemoteException; + public boolean isUserRunning(int userid, boolean orStopping) throws RemoteException; public int[] getRunningUserIds() throws RemoteException; public boolean removeSubTask(int taskId, int subTaskIndex) throws RemoteException; |