Skip to content
Snippets Groups Projects
Commit 5ea4cc20 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Fix PowerKeyGestureTests#testPowerSinglePress

In ag/23249820, we moved the code to fetch power key behaviors from
PhoneWindowManager#init to PhoneWindowManager#updateSettings. Since the
PowerKeyGestureTests mocks out the updateSettings method, the key
behaviors were not being read properly.

This CL fixes the issue by explicitly setting the power button short
press behavior (which used to be implicitly assumed in the specific test
case).

Bug: 287561423
Test: atest com.android.server.policy.PowerKeyGestureTests#testPowerSinglePress
Change-Id: I446efafb5695d8fc76aa75d2338d8862e538cb01
parent 44a9993e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment