Add null check for fingerprint props
Bug: 262838215 Test: NA Change-Id: I28c8a88a989bf4107698f6e8a4737bcc822df3e6
This commit is contained in:
@@ -1005,9 +1005,11 @@ public class AuthController implements CoreStartable, CommandQueue.Callbacks,
|
||||
* not enrolled sfps. This may be false if called before onAllAuthenticatorsRegistered.
|
||||
*/
|
||||
public boolean isRearFpsSupported() {
|
||||
for (FingerprintSensorPropertiesInternal prop: mFpProps) {
|
||||
if (prop.sensorType == TYPE_REAR) {
|
||||
return true;
|
||||
if (mFpProps != null) {
|
||||
for (FingerprintSensorPropertiesInternal prop: mFpProps) {
|
||||
if (prop.sensorType == TYPE_REAR) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user