You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.
the animation with "Fingerprint recognised" text is shown
because that animation has 1 sec of delay before calling the callback mCallback.onAuthenticated();
if you send the app in background during the animation then it crash (just press home button before the animation is gone)
The issue is that are missing some checks when you call dismiss()
@OverRide
public void onAuthenticated() {
// Callback from FingerprintUiHelper. Let the activity know that authentication was
// successful.
mActivity.onPurchased(true /* withFingerprint */, mCryptoObject);
dismiss();
}
I suggest to put
Activity anActivity = getActivity();
if (getDialog() != null && getDialog().isShowing() && isResumed() && anActivity != null && !anActivity.isFinishing()) {
dismiss();
}
or you can use dismissAllowingStateLoss()
The text was updated successfully, but these errors were encountered:
Hi,
To make it crash do this:
The issue is that are missing some checks when you call dismiss()
@OverRide
public void onAuthenticated() {
// Callback from FingerprintUiHelper. Let the activity know that authentication was
// successful.
mActivity.onPurchased(true /* withFingerprint */, mCryptoObject);
dismiss();
}
I suggest to put
Activity anActivity = getActivity();
if (getDialog() != null && getDialog().isShowing() && isResumed() && anActivity != null && !anActivity.isFinishing()) {
dismiss();
}
or you can use dismissAllowingStateLoss()
The text was updated successfully, but these errors were encountered: