Skip to content

Commit

Permalink
apacheGH-799 (Android) Prevent webview from restarting on activity re…
Browse files Browse the repository at this point in the history
…size

fixed lint issues
  • Loading branch information
breautek committed Aug 6, 2019
1 parent f368e08 commit eb6a481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/templates/cordova/lib/AndroidManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ AndroidManifest.prototype.setPackageId = function (pkgId) {
return this;
};

Android.prototype.getApplication = function () {
AndroidManifest.prototype.getApplication = function () {
let application = this.doc.getroot().find('./application');
return {
isActivityResizable: function () {
return application.attrib['android:resizableActivity'];
},
setActivityResizable: function(resizable) {
setActivityResizable: function (resizable) {
// Set the default/convert boolean to string
application.attrib['android:resizableActivity'] = resizable === 'false' || resizable === false ? 'false' : 'true';
return this;
}
}
};
};

AndroidManifest.prototype.getActivity = function () {
Expand Down
2 changes: 1 addition & 1 deletion bin/templates/project/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
android:launchMode="singleTop"
android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down

0 comments on commit eb6a481

Please sign in to comment.