ConfirmationDialog: Pass accessibility options and implement isSupported().
Bug: 63928580 Test: Manually tested. Change-Id: I6a06d10a4cb924c3e57c8e212ba4626cad00f4a1
This commit is contained in:
@@ -783,6 +783,20 @@ public class KeyStore {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Requests keystore to check if the confirmationui HAL is available.
|
||||
*
|
||||
* @return whether the confirmationUI HAL is available.
|
||||
*/
|
||||
public boolean isConfirmationPromptSupported() {
|
||||
try {
|
||||
return mBinder.isConfirmationPromptSupported();
|
||||
} catch (RemoteException e) {
|
||||
Log.w(TAG, "Cannot connect to keystore", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a {@link KeyStoreException} corresponding to the provided keystore/keymaster error
|
||||
* code.
|
||||
|
||||
Reference in New Issue
Block a user