Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6894ba3d authored by Hao Dong's avatar Hao Dong Committed by Android Build Coastguard Worker
Browse files

Fix settings activity showing background bp when

createConfirmDeviceCredentialIntent() API is used.

If the app uses createConfirmDeviceCredentialIntent(),
ConfirmDeviceCredentialActivity is the top activity which has "settings"
as package name. Then if the app switches to settings, since previous
foreground check only checks package name, biometric prompt isn't
cancelled. This CL adds a class name check for this case.

Flag: EXEMPT bugfix
Bug: 339532378
Test: manual test with sample app on emulator
Test: atest BiometricActivityTests#testConfirmDeviceCredentialActivityDismiss_whenSwitchToSettings
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:daddef9cd99ab401c4bb0b63ec434c08d549a97d)
Merged-In: I722e285cd15869799b9fadd2324014cf3c6d44ad
Change-Id: I722e285cd15869799b9fadd2324014cf3c6d44ad
parent 04a5d5dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment