Prevent test activity being reconfigured after supporting DPAD

Activity might not be in RESUMED state when key is pressed
because config changes caused activity to be re-created.

This doesn't happen in Pixel phone due to activity being re-created
fast enough. In chromebooks the test is flaky as it depends on how
fast activity is back on RESUMED state.

Bug: 241305514
Test: atest android.view.cts.input.InputDeviceKeyLayoutMapTest#testLayoutKeyEvents
Change-Id: Ie30bb386ffb15b088f83e4e3ef27af416ee3e978
1 file changed