Upstream version 6.35.131.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / XWalkClient.java
index 4caa3e1..140f47f 100644 (file)
@@ -34,6 +34,8 @@ import android.widget.TextView;
 /**
  * It's the Internal class to handle legacy resource related callbacks not
  * handled by XWalkResourceClient.
+ *
+ * @hide
  */
 public class XWalkClient {
 
@@ -41,8 +43,8 @@ public class XWalkClient {
     private AlertDialog mDialog;
     private XWalkView mXWalkView;
 
-    public XWalkClient(Context context, XWalkView view) {
-        mContext = context;
+    public XWalkClient(XWalkView view) {
+        mContext = view.getContext();
         mXWalkView = view;
     }