[
https://issues.apache.org/jira/browse/CB-12835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16269220#comment-16269220
]
ASF subversion and git services commented on CB-12835:
------------------------------------------------------
Commit 17906735dfe23e74cbe75394a0de3bf448233f25 in cordova-android's branch
refs/heads/master from [~dreifachstein]
[ https://gitbox.apache.org/repos/asf?p=cordova-android.git;h=1790673 ]
CB-12835: add a Context getter in CordovaInterface
A custom engine may live outside of the Activity's lifecycle and the
Activity instance may not always be available. This getter allows
Context accesses in all cases.
> Add a Context getter in CordovaInterface
> ----------------------------------------
>
> Key: CB-12835
> URL: https://issues.apache.org/jira/browse/CB-12835
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: 3.5.0
> Reporter: Xiaolei Yu
> Assignee: Joe Bowser
> Labels: android-next
>
> We use a WebView instance within an android Service and attach it to an
> activity view hierarchy when user interaction is required.
> Assuming cordova wants to support such use case a Context getter is needed in
> CordovaInterface for plugins that are accessing Context through getActivity()
> (such as the device plugin)
>
> I originally created CB-12623 for the device plugin. After receiving comments
> I think it should be addressed here first.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]