Assigned
Status Update
Comments
pa...@morganstanley.com <pa...@morganstanley.com> #2
I face with the same problem. I have different pageMargin in landscape and portrait and when viewpager is scrolled for the more than first position, after rotating device it is shifted.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
Description
- Device type: Pixel 3 XL emulator
- OS version: API 29
- Biometric library version: 1.2.0-alpha05
STEPS TO REPRODUCE
1. Create a Pixel 3 XL emulator with API 29 in Android Studio
2. Enroll a fingerprint
3. Call androidx.biometric.BiometricManager.canAuthenticate(BIOMETRIC_STRONG)
EXPECTED RESULTS
IF BiometricManager.canAuthenticate(BIOMETRIC_STRONG) returns BIOMETRIC_SUCCESS, then keyPairGenerator.initialize with setUserAuthenticationRequired(true) should NOT throw an exception.
OBSERVED RESULTS
androidx.biometric.BiometricManager.canAuthenticate(BIOMETRIC_STRONG) returns BIOMETRIC_SUCCESS, but keyPairGenerator.initialize with setUserAuthenticationRequired(true) will return
InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one biometric must be enrolled to create keys requiring user authentication for every use