OSDN Git Service

Fixed issue with MAX_RUNNING_USERS
authorFyodor Kupolov <fkupolov@google.com>
Wed, 25 Oct 2017 21:23:43 +0000 (14:23 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Wed, 25 Oct 2017 21:23:43 +0000 (14:23 -0700)
commitbc77f8889e2158cefeddebaccb26e0196851004f
treea72f58fe212139c1fbc06e45cc71c0a5290f21ff
parent0e0621a46bb23de1d2dea0902a133d0a1c0ba977
Fixed issue with MAX_RUNNING_USERS

Previously the user being switched could remain running if primary user
had work profile, due to counter being decremented twice.

Test: manual switch with work profiles and without + cts
Bug: 67091825
Change-Id: I61212c6407fecefa0094c6265dee6f3184d95701
services/core/java/com/android/server/am/UserController.java