Fixed Settings Crash

Fixes: 137319680
Test: Manual
Change-Id: I0e22bd561787b1a141bf2e3060b23fe70a6d96ce
This commit is contained in:
joshmccloskey
2019-07-12 13:17:37 -07:00
parent 365beaebdb
commit 6a3012f21d
2 changed files with 11 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ public class FaceSetupSlice implements CustomSliceable {
@Override
public Slice getSlice() {
final FaceManager faceManager = mContext.getSystemService(FaceManager.class);
final FaceManager faceManager = Utils.getFaceManagerOrNull(mContext);
if (faceManager == null || faceManager.hasEnrolledTemplates(UserHandle.myUserId())) {
return null;
}