You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/05 14:11:30 UTC

[GitHub] [cordova-android] ttencate opened a new issue #799: App is restarted on split-screen

ttencate opened a new issue #799: App is restarted on split-screen
URL: https://github.com/apache/cordova-android/issues/799
 
 
   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   App keeps running in split screen, just resized.
   
   ### What does actually happen?
   
   Activity is restarted.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   Press and hold the "square" button on any modern Android device to trigger split screen mode. Notice how the Cordova app is restarted.
   
   This is fixed if I add the following to my `config.xml`:
   
       <edit-config file="AndroidManifest.xml" target="/manifest/application/activity[@android:name='MainActivity']" mode="merge">
         <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" />
       </edit-config>
   
   This is the default list of `configChanges` with `|smallestScreenSize|screenLayout|uiMode` appended. See docs: https://developer.android.com/guide/topics/manifest/activity-element#config
   
   I propose that at least `smallestScreenSize|screenLayout` are added to the default `AndroidManifest.xml`. `uiMode` is not necessary to fix this issue, but should maybe be in the default list as well.
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   Android 7.1.2
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova 9.0.0  
   Cordova Android 8.0.0
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues (#744 is a duplicate, but folks explicitly requested a new issue)
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org