Paldom / SpinnerDialog

PhoneGap waiting dialog plugin with spinner for Android, iOS and Windows Phone 8.
MIT License
68 stars 70 forks source link

android (on tap of screen loader fizzles out) #5

Open kokoman opened 10 years ago

kokoman commented 10 years ago

Hello nice plugin, but i noticed something on android device, phonegap 3.1, when i call the loader nd also call the hide function like this : i noticed if i put my finger on the screen, the loader stops, it dosent load the exact time 7 secs specified or any timeout specified. Is that a default behaviour ? or bug Regards

Paldom commented 10 years ago

It's default behaviour, there's an OnCancelListener specified which handles the cancel events.

juliosecco commented 10 years ago

sorry, I don't understand the answer, does it mean that nothing can be done, ora that can be handled the OnCancelListener event in some way to avoid the loader to stop?

thanks

Paldom commented 10 years ago

There's a cancel listener defined for now, which stops loader on tap or hardware back event. It's planned to disable this option from javascript, so it would be optional to stop loader on any events.

vishnurajoasys commented 10 years ago

So is this option available now? How can I disable 'touch to close' of spinner?

Paldom commented 10 years ago

@kokoman @juliosecco @vishnurajoasys Hi guys! you can disable 'touch to close' and make spinner non-cancelable on Android from version 1.1.0 // Set spinner dialog fixed (cannot be canceled with screen touch or hardware button - Android only) window.plugins.spinnerDialog.show("title","message", true);

juliosecco commented 10 years ago

Worderful

thank you very much!

Giulio

BitBazar Srl Via Andrea Doria, 57 00192 Roma tel +39 0639737052 tel +39 0639725787 fax +39 0691659229 http://www.cantoberon.it


Il giorno 06/ott/2014, alle ore 15:07, Paldom notifications@github.com ha scritto:

@kokoman @juliosecco @vishnurajoasys Hi guys! you can disable 'touch to close' and make spinner non-cancelable on Android from version 1.1.0 // Set spinner dialog fixed (cannot be canceled with screen touch or hardware button - Android only) window.plugins.spinnerDialog.show("title","message", true);

— Reply to this email directly or view it on GitHub.