Skip to content

Commit

Permalink
Merge pull request #80 from ChrisCole42/patch-2
Browse files Browse the repository at this point in the history
Update compass.py
  • Loading branch information
trivedigaurav committed Jul 20, 2014
2 parents 9acaa46 + fa7fa63 commit 36fd9ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plyer/platforms/android/compass.py
Expand Up @@ -7,6 +7,9 @@
from jnius import PythonJavaClass, java_method, autoclass, cast
from plyer.platforms.android import activity

Context = autoclass('android.content.Context')
Sensor = autoclass('android.hardware.Sensor')
SensorManager = autoclass('android.hardware.SensorManager')

class MagneticFieldSensorListener(PythonJavaClass):
__javainterfaces__ = ['android/hardware/SensorEventListener']
Expand Down

0 comments on commit 36fd9ad

Please sign in to comment.