Settings Fragment Migration (Build pass app)
This patch focused on fixing compile errors and some runtime errors. Test: We can't test it now. But we will have an integration test later. Bug: 110259478 Change-Id: I16c471ddcd0fa1460c665b7f74d86fcace5ee67b
This commit is contained in:
@@ -78,11 +78,11 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase {
|
||||
}
|
||||
|
||||
private void startLookingForFingerprint() {
|
||||
mSidecar = (FingerprintEnrollSidecar) getFragmentManager().findFragmentByTag(
|
||||
mSidecar = (FingerprintEnrollSidecar) getSupportFragmentManager().findFragmentByTag(
|
||||
FingerprintEnrollEnrolling.TAG_SIDECAR);
|
||||
if (mSidecar == null) {
|
||||
mSidecar = new FingerprintEnrollSidecar();
|
||||
getFragmentManager().beginTransaction()
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.add(mSidecar, FingerprintEnrollEnrolling.TAG_SIDECAR).commit();
|
||||
}
|
||||
mSidecar.setListener(new Listener() {
|
||||
@@ -148,7 +148,8 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase {
|
||||
return;
|
||||
}
|
||||
}
|
||||
getFragmentManager().beginTransaction().remove(mSidecar).commitAllowingStateLoss();
|
||||
getSupportFragmentManager().beginTransaction().remove(mSidecar).
|
||||
commitAllowingStateLoss();
|
||||
mSidecar = null;
|
||||
startActivityForResult(getFingerprintEnrollingIntent(), ENROLLING);
|
||||
}
|
||||
|
Reference in New Issue
Block a user