commit | a8a9bd65bf5865d83ef44f54552ca39522bfbcf0 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Tue Oct 09 15:36:59 2012 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Tue Oct 09 17:00:31 2012 -0700 |
tree | 2487c59160d21ab84f7890724ec9adae5ea8af53 | |
parent | 3b9e7f32380e179aa1e0718762e86ffa24cbab93 [diff] |
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