Partial revert of ag/7508382 to retain back button responsiveness in BiomtericPrompt

The layout should be focusable and be set to focused in order for the
back button events to be received, since the key listener is set on
the layout.

Fixes: 133781042

Test: Back button cancels authentication
Test: No regression in tests mentioned in the CL above
Change-Id: I7d78bea400e8791e296a53603414095cfca62ec1
This commit is contained in:
Kevin Chyn
2019-06-05 13:43:58 -07:00
parent 6e9c0741b5
commit d1cdc3abc5

View File

@@ -228,6 +228,10 @@ public abstract class BiometricDialogView extends LinearLayout {
showTryAgainButton(false /* show */);
mCallback.onTryAgainPressed();
});
// Must set these in order for the back button events to be received.
mLayout.setFocusableInTouchMode(true);
mLayout.requestFocus();
}
public void onSaveState(Bundle bundle) {