OSDN Git Service

Call ensureActivitiesVisibleLocked when setShowWhenLocked
authorKevin Chyn <kchyn@google.com>
Tue, 10 Oct 2017 01:34:41 +0000 (18:34 -0700)
committerJorim Jaggi <jjaggi@google.com>
Tue, 17 Oct 2017 15:41:48 +0000 (15:41 +0000)
commit4463948a1266e745d5531a28a353726a25515971
treeee4db5412cc98f5f38cbe5fa57a66b68b41216c2
parent0f8970d7e6f8aed18fb4efb19c5bdc4254d754ab
Call ensureActivitiesVisibleLocked when setShowWhenLocked

If an activity is behind lockscreen and then just calls
setShowWhenLocked(true), nothing will happen, as it won't trigger AM to
update the visibilities of the activities. We need to make sure to
actually update the visibilities in this case.

Test: ran go/wm-smoke tests

Change-Id: I4fb384a3d5ef8427c2eee32986f1dcbd07514825
services/core/java/com/android/server/am/ActivityRecord.java