Skip to content

Commit 101b90c

Browse files
author
BAGGIO Matteo
committed
Added FrameLayout container to the webview to interact with other plugins that need to manipulate the webview parent
1 parent 49ff4ca commit 101b90c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/android/uk/co/reallysmall/cordova/plugin/fragment/CordovaFragment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ public View getContentView() {
119119
}
120120

121121
public void setContentView(View contentView) {
122-
this.contentView = contentView;
122+
FrameLayout frame = new FrameLayout(this.getActivity().getBaseContext());
123+
frame.addView(contentView);
124+
this.contentView = frame;
123125
}
124126

125127
@Override

0 commit comments

Comments
 (0)