OSDN Git Service

Determine power hint behavior based on target activity.
authorBryce Lee <brycelee@google.com>
Fri, 21 Jul 2017 20:25:13 +0000 (13:25 -0700)
committerBryce Lee <brycelee@google.com>
Fri, 21 Jul 2017 21:49:32 +0000 (14:49 -0700)
commit28d8042bcd0dcbae1c2ef3d39840477fabe1bfd7
treec8a401bf8685dfcff5721d073e7c9171881bd636
parent3fbd93056e3b142080a2313158d2b0e7ef84061e
Determine power hint behavior based on target activity.

Previously, logic was added surrounding whether to trigger a power
hint based on the start activity. However, this activity is not
always relevant in the calling context.

This change adjusts the logic by passing the target activity into
the method.

Fixes: 63913311
Test: press home button while on home and ensure power hint not
      triggered.

Change-Id: I71ffcae7adbc2c55ef5b2994f4c55688d0aa0ca5
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/am/ActivityStarter.java