OSDN Git Service

Timeout to ensure user-switching dialog is closed
authorAmith Yamasani <yamasani@google.com>
Mon, 9 Feb 2015 23:45:26 +0000 (15:45 -0800)
committerAmith Yamasani <yamasani@google.com>
Tue, 10 Feb 2015 20:15:22 +0000 (12:15 -0800)
commit5e5cb463b6e2540a7ef6c261ba5fed074be536e1
tree0aa71e3cbdc24e28ca7a28c5cd10f71d2193cd48
parent3f5175fccd39c341064e8bd86cb03dba4bc6881c
Timeout to ensure user-switching dialog is closed

In the event of user-switch invoked by a remote device admin call,
the window manager does not make window-shown callbacks when the
screen is off. Add a timeout to continue the user switch in case
the callback doesn't come through.

This fixes a stuck "Switching to user.." dialog when a profile
owner requests a user wipe.

Bug: 19275716
Change-Id: I3a51bbaaf3d9ac6c006464360f1146b2499d205b
services/core/java/com/android/server/am/UserSwitchingDialog.java