Skip to content

Commit 6842c50

Browse files
Merge pull request #1 from SonoIo/master
Added "${mypackage}" to MainActivity.java
2 parents b3b7a93 + 101b90c commit 6842c50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/android/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Licensed to the Apache Software Foundation (ASF) under one
1717
under the License.
1818
*/
1919

20-
package uk.co.reallysmall.leaveyouregosatthedoor;
20+
package ${mypackage};
2121

2222
/** extends CordovaActivity */
2323

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)