diff options
| author | 2022-09-01 18:23:21 +0000 | |
|---|---|---|
| committer | 2022-09-07 15:57:29 +0000 | |
| commit | 5dccdb24cf0c7e95f30ac985970b6608ab074a72 (patch) | |
| tree | c9b653b7afc2871f60c0cc8856eafde074c8006a /libs/androidfw/AttributeResolution.cpp | |
| parent | 939a2a954d611d741963794a22e1f99f099c2ca1 (diff) | |
Don't show any trust granted message if passed an empty string
If the trustGranted call has flag DISPLAY_MESSAGE and
message is intentionally set to an empty string "", then
don't show ANY trust granted message. If the message is null
or DISPLAY_MESSAGE is not set when trust is granted,
then the device will show its default trust granted string.
Test: atest KeyguardIndicationControllerTest
Test: manually grantTrust with the FLAG_GRANT_TRUST_DISPLAY_MESSAGE
and an empty string. See that device has trust granted and doesn't
show any keyguard indication message.
Fixes: 243075236
Change-Id: Ic31a1758e9baa27b236f09ba8e656d15dd04e7f0
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions