pwittchen / RxBiometric

☝️ RxJava and RxKotlin bindings for Biometric Prompt (Fingerprint Scanner) on Android
Apache License 2.0
301 stars 27 forks source link

Dialog Dismiss #48

Open HardikLohogaonkar opened 5 years ago

HardikLohogaonkar commented 5 years ago

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

pwittchen commented 5 years ago

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.

HardikLohogaonkar commented 5 years ago

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.

pwittchen commented 5 years ago

Ok, that sounds like a good idea.

HardikLohogaonkar commented 5 years ago

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

pwittchen commented 5 years ago

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