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/06/13 12:45:37 UTC

[GitHub] [cordova-android] breautek edited a comment on issue #744: Restart on split-screen

breautek edited a comment on issue #744: Restart on split-screen
URL: https://github.com/apache/cordova-android/issues/744#issuecomment-501683182
 
 
   Just noting that I'm able to reproduce this Android 9. While in multi-window, it seems like the webview restarts everytime the window is resized. Personally in my apps, I would like to be able to disable multi-window... but I feel like this is a feature that should be disabled by default especially if it doesn't work out of the box.
   
   I'll post some information below that might be helpful. I may tackle this over the weekend if time permits.
   
   Android documentation about multi-window can be found [here](https://developer.android.com/guide/topics/ui/multi-window)
   
   Specifically the `resizableActivity` attribute docs can be found [here](https://developer.android.com/guide/topics/ui/multi-window#resizeableActivity)
   
   There are two important bits of information...
   
   >  If this value is false, and the user attempts to launch the activity in multi-window mode, the activity takes over the full screen.
   
   So `android:resizableActivity="false"` _should_ work...
   
   > Note: If you build a multi-orientation app that targets API level 23 or lower, and the user uses the app in multi-window mode, the system forcibly resizes the app. The system presents a dialog box warning the user that the app may behave unexpectedly...
   
   But it sounds like it will only work if the target SDK is >= 24. The current master in cordova-android has target SDK set to 28 so we __should__ be safe there. But the behaviour @kamilSarapuk described appears to match this notice.

----------------------------------------------------------------
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