jianxux / eyes-free

Automatically exported from code.google.com/p/eyes-free
0 stars 0 forks source link

Update of TalkingDialer Deprecated Code in ShakeDetector #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've updated the ShakeDetector.java code to remove deprecated method usage, 
and replace it with up to date methods.

I'm building against Android 1.6. As far as I know, this is the minimum 
required API to correctly use Talking Dialer, if I am in error, please let 
me know.

I've attached a diff file & the source, which has a list of all purposed 
changes, but in general the SensorListener class has been deprecated in 
favor of SensorEventListener. I've updated the ShakeDetector class to use 
the new class, along with properly updated methods.

Lastly, the registerListener methdor has been updated to the non-deprecated 
version.

I tested this build on my G1 and everything seems to be working fine. If 
there is anything I need to change, please let me know.

If there is anything wrong with my submission, please inform me and I will 
fix it.

Thank you.

Original issue reported on code.google.com by justinbb...@gmail.com on 6 Apr 2010 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago
Patch accepted. Committed as part of
http://code.google.com/p/eyes-free/source/detail?r=595

Original comment by clc...@google.com on 16 Apr 2010 at 11:01