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

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

GitHub user dreifachstein opened a pull request:

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

    CB-12623: (android) access Context through webView.getContext()

    Android WebView can be created without an Activity. One use case is
    to create a WebView within a Service and attach/detach it to an
    Activity window on demand.


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

    $ git pull https://github.com/dreifachstein/cordova-plugin-device master

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

    https://github.com/apache/cordova-plugin-device/pull/62.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 #62
    
----
commit 7d4abf7e78aa14b3a6bfe6011271895f99de873e
Author: Xiaolei Yu <[email protected]>
Date:   2017-04-23T08:35:42Z

    CB-12623: (android) access Context through webView.getContext()
    
    Android WebView can be created without an Activity. One use case is
    to create a WebView within a Service and attach/detach it to an
    Activity window on demand.

----


> Android: device plugin should access Context through webView.getContext()
> -------------------------------------------------------------------------
>
>                 Key: CB-12623
>                 URL: https://issues.apache.org/jira/browse/CB-12623
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Device
>            Reporter: Xiaolei Yu
>            Priority: Minor
>
> The device plugin only requires a valid Context but currently depends on an 
> active Activity, and does not work when the WebView is created in a service.
> CB-7976 is a similar issue.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to