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

Skip to content
Commit ed3f6793 authored by Eric Biggers's avatar Eric Biggers Committed by Yi-Yo Chiang
Browse files

Replace isWeaverAvailable() with getWeaverService()

isWeaverAvailable() has to be called before weaverVerify() and
weaverEnroll(); otherwise mWeaver might still be null.  However, this
was not enforced and was easy to forget to do.

This CL therefore changes the design slightly to make weaverVerify() and
weaverEnroll() take IWeaver as an argument.  To get the IWeaver,
getWeaverService() is called, taking the place of isWeaverAvailable().
Note that this is analogous to LockSettingsService#getGateKeeperService.

Bug: 287705522
Test: Treehugger
Merged-In: I70c26232a9b300a7e6e2c815db6c143836c42ec3
Change-Id: I70c26232a9b300a7e6e2c815db6c143836c42ec3
(cherry picked from commit 922aaa24)
parent ce5cba3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment