Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/android/plugin/google/maps/GoogleMaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void initialize(final CordovaInterface cordova, final CordovaWebView webV
super.initialize(cordova, webView);
activity = cordova.getActivity();
density = Resources.getSystem().getDisplayMetrics().density;
root = (ViewGroup) webView.getParent();
root = (ViewGroup) webView.getView().getParent();

// Is this release build version?
boolean isRelease = false;
Expand Down
4 changes: 2 additions & 2 deletions src/android/plugin/google/maps/MyPluginLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public MyPluginLayout(CordovaWebView webView, Activity activity) {
super(webView.getContext());
mActivity = activity;
this.webView = webView;
this.root = (ViewGroup) webView.getParent();
this.root = (ViewGroup) webView.getView().getParent();
this.context = webView.getContext();
webView.getView().setBackgroundColor(Color.TRANSPARENT);
if (VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
Expand Down Expand Up @@ -258,7 +258,7 @@ public FrontLayerLayout(Context context) {
@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
if (isClickable == false || myView == null || myView.getVisibility() != View.VISIBLE) {
webView.requestFocus(View.FOCUS_DOWN);
webView.getView().requestFocus(View.FOCUS_DOWN);
return false;
}
int x = (int)event.getX();
Expand Down