Fixed biometric setting crash.
Test: Verified test crashed without fix, and passed with fix Test: atest FingerprintSettingsFragmentTest Fixes: 315164185 Change-Id: I1d8ab32eef8578a6d35831aef46275a9732e497c
This commit is contained in:
committed by
Joshua Mccloskey
parent
212c2b4724
commit
a900c1dd1b
@@ -262,6 +262,13 @@ public class FingerprintSettingsFragmentTest {
|
||||
mFragment.onResume();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFragmentVisibleWhenNoHardwareDetected() {
|
||||
doReturn(false).when(mFingerprintManager).isHardwareDetected();
|
||||
setUpFragment(false);
|
||||
assertThat(mFragment.isVisible()).isTrue();
|
||||
}
|
||||
|
||||
private void setSensor(@FingerprintSensorProperties.SensorType int sensorType) {
|
||||
final ArrayList<FingerprintSensorPropertiesInternal> props = new ArrayList<>();
|
||||
props.add(new FingerprintSensorPropertiesInternal(
|
||||
|
Reference in New Issue
Block a user