RxBiometric icon indicating copy to clipboard operation
RxBiometric copied to clipboard

Dialog Dismiss

Open HardikLohogaonkar opened this issue 6 years ago • 5 comments

If we tap outside Biometric Dialog it is dismissing. It should remain as it is.

HardikLohogaonkar avatar Aug 13 '19 05:08 HardikLohogaonkar

Are you sure it should remain as it is? This is system dialog and I didn't change its behavior, so I suppose it's default behavior.

pwittchen avatar Aug 13 '19 08:08 pwittchen

Yes. If I accidentally tap outside dialog it will automatically close without authorizing, also there is a method named as onTouchOutside(). If you give us this option it will beneficial.

HardikLohogaonkar avatar Aug 13 '19 08:08 HardikLohogaonkar

Ok, that sounds like a good idea.

pwittchen avatar Aug 13 '19 10:08 pwittchen

Just add this method to your dialog "setCanceledOnTouchOutside(false)" This will prevent dialog from closing if we tap outside dialog.

HardikLohogaonkar avatar Aug 14 '19 05:08 HardikLohogaonkar

Where exactly? BiometricPrompt.PromptInfo doesn't have such method.

pwittchen avatar Aug 14 '19 10:08 pwittchen