Andrew Grieve created CB-7153:
---------------------------------
Summary: CordovaWebView() crashes if constructed with a Context
that does not implement CordovaInterface
Key: CB-7153
URL: https://issues.apache.org/jira/browse/CB-7153
Project: Apache Cordova
Issue Type: Improvement
Components: Android
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor
It is a bit restrictive to enforce that the Context used to construct
CordovaWebView must also be the thing that implements CordovaInterface.
However, it's important to maintain a Constructor that takes a Context as its
only parameter so that the View can be inflated within XML layouts.
To solve this, and to make it possible to initialize the class with other
dependencies that it has, we should move to using two-phase initialization.
--
This message was sent by Atlassian JIRA
(v6.2#6252)