Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can do action when the popup dismiss (backPressed) ? #9

Closed
Paul75 opened this issue Oct 5, 2017 · 3 comments
Closed

Can do action when the popup dismiss (backPressed) ? #9

Paul75 opened this issue Oct 5, 2017 · 3 comments

Comments

@Paul75
Copy link

Paul75 commented Oct 5, 2017

Hello,

For example i use this with camera qrcode scanner Zbar and when I press back button I must reactivate the scanner.

It works with the action of button OK i can add line to reactivate but when I can do the line when I click back to my phone when dialog is open ?

Thanks

@Paul75 Paul75 changed the title Can do action when the popup dismiss ? Can do action when the popup dismiss (backPressed) ? Oct 5, 2017
@blennerSilva
Copy link
Owner

Right now i dont think it is posssible cuz e always dismiss it on any click. What you could do is download de code and override on backpressed inside dialog fragment it should work

@Paul75
Copy link
Author

Paul75 commented Oct 5, 2017

for exemple I use Zbar qrcode scanner and I must do after a popup close : mScannerView.resumeCameraPreview(resultHandler);

I have found a solution: .setCancelable(false) that not allow to close without a button ....

@blennerSilva
Copy link
Owner

i thought u were already using that lol but im glad it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants