[TIMOB-1332] Android: KS Geo test fails with no location sources.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T02:49:39.000+0000 |
Updated | 2011-04-17T01:55:53.000+0000 |
(from [cad4652a7d72861fcb686bd75c2d0d6904b92069]) [#1332 state:resolved] Handle the case where there are no providers available http://github.com/appcelerator/titanium_mobile/commit/cad4652a7d72861fcb686bd75c2d0d6904b92069"> http://github.com/appcelerator/titanium_mobile/commit/cad4652a7d728...
Tested this out.
No longer blows up however:
#1) isLocationServicesEnabled allways is null if location services are disabled or enabled
#2) getCurrentPosition doesnt call success OR error when location services disabled.
Result, if you call getCurrentLocation will never come back and our application hangs since it needs either a success or error callback to continue.
Example:
http://pastie.org/1051301">http://pastie.org/1051301
If location services are disabled neither function is called.
(from [79762d6eaf30d10c357d4574cac156adf39d6900]) [#1332 state:resolved] It helps if I report the lack of providers back to the app. http://github.com/appcelerator/titanium_mobile/commit/79762d6eaf30d10c357d4574cac156adf39d6900"> http://github.com/appcelerator/titanium_mobile/commit/79762d6eaf30d...