[ 
https://issues.apache.org/jira/browse/CB-11531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363976#comment-15363976
 ] 

ASF GitHub Bot commented on CB-11531:
-------------------------------------

GitHub user daserge opened a pull request:

    https://github.com/apache/cordova-plugin-device-motion/pull/45

    CB-11531 Restart Accelerometer on CyanogenMod 13

    <!--
    Please make sure the checklist boxes are all checked before submitting the 
PR. The checklist
    is intended as a quick reference, for complete details please see our 
Contributor Guidelines:
    
    http://cordova.apache.org/contribute/contribute_guidelines.html
    
    Thanks!
    -->
    
    ### Platforms affected
    Android
    
    ### What does this PR do?
    Reset sensor `accuracy` after setting it to `SENSOR_STATUS_UNRELIABLE` in 
`stop` so that check in `onSensorChanged` passes.
    
    ### What testing has been done on this change?
    Tested on api22, api23 emulators, api22 device.
    
    ### Checklist
    - [x] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and 
submitted to [email protected].
    - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) 
in the JIRA database
    - [x] Commit message follows the format: "CB-3232: (android) Fix bug with 
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform 
affected.
    - [ ] Added automated test coverage as appropriate for this change.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/daserge/cordova-plugin-device-motion CB-11531

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-device-motion/pull/45.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #45
    
----
commit 293dcb9220ac379a9e4cd7776d02969367df6dca
Author: daserge <[email protected]>
Date:   2016-07-06T08:17:17Z

    CB-11531 Restart Accelerometer on CyanogenMod 13
    
    Reset sensor accuracy after setting it to SENSOR_STATUS_UNRELIABLE in stop

----


> Restart Accelerometer on CyanogenMod 13
> ---------------------------------------
>
>                 Key: CB-11531
>                 URL: https://issues.apache.org/jira/browse/CB-11531
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Device Motion
>         Environment: Nexus 4, Android 6.0.1 (CyanogenMod 13)
>            Reporter: CL
>              Labels: android, reproduced, triaged
>
> When the accelerometer is started for the first time via the 
> navigator.accelerometer.watchAccleration() function it works fine. But when 
> the accelerometer is stopped (via navigator.accelerometer.clearWatch()) and 
> then started again after a timeout the success callback is not called anymore.
> It works on a Samsung Galaxy S III with the original Android ROM installed.
> Further details about the issue can be found here: 
> https://stackoverflow.com/questions/38027898/phonegap-restart-accelerometer?noredirect=1#comment63775867_38027898



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to