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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user