Assigned
Status Update
Comments
sp...@google.com <sp...@google.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.
an...@microsoft.com <an...@microsoft.com> #3
[Comment deleted]
sp...@google.com <sp...@google.com> #4
I found the same problem in suport library v4, wrong align happens only when ViewPager has a page margin > 0.
Description
- A bugreport immediately after the issue occurs.
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
BUILD INFO
- Device type: Pixel 7 Pro
- OS version: Android 14
- Biometric library version: 1.1.0
STEPS TO REPRODUCE
We wanted to get some improvements to the AndroidX Biometric Library:
Our use case - we want to react on a signal of how many failed PIN attempts the user has tried.
We are using the Android documentation for writing a code:
This is already existing functionality with Biometric Prompts, so that a user can scan biometric fingerprint, say 3 times, then we can log that on app side and made further UI based on it because we get callbacks on each failed Biometrics attempt.
Now, with PIN - that's not possible.
onAuthenticationSucceeded() - is only called when the authentication is successful. - Not useful.
onAuthenticationError() - is only called when a user cancels the biometrics / device PIN dialog. This does not also give us any information on the incorrect device PIN attempts made.
onAuthenticationFailed() - is only called when a biometrics attempt fails. It is not called on device PIN failure.
We see this as an inconsistency and it would be good if we get "onAuthenticationFailed()" callbacks when PIN attempt fails.
EXPECTED RESULTS
Get a callback for each failed PIN unlock attempt.
OBSERVED RESULTS
No callbacks for each failed PIN unlock attempts and no information about how many failed PIN attempts were made when PIN entry was successful or cancelled.
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE: 100% reproducible.