forked from amazingfate/loongoffice
Update compileSdk and targetSdkVersion to 35 (Android 15). In a quick test, running the app seems fine in an API 36 (Android 16) AVD configured to use 16 KB Page Size, for which support was added in Android 15 [1]. Changing the targetSdkVersion to 35 implies that edge-to-edge would now enabled by default [2]. That would result in the app par overlapping with the system bar and interaction would be broken. For now, avoid that by explicitly opting out of edge-to-edge support by setting android:windowOptOutEdgeToEdgeEnforcement for API versions >= 35 in the LibreOfficeTheme used by all activities by now. Helpful article: [3] That won't work for targetSdkVersion 36 any more (see [4]), but at least helps to comply with the upcoming required targetSdkVersion of 35 in Google Play and gives some time to implement proper support for edge-to-edge for Android 16+ devices before increasing the targetSdkVersion further. Android Viewer works as expected in a quick test with an API 36 (Android 16) x86_64 AVD and an API 24 (Android 7) x86 AVD (with an additional local revert of commit 9d1e76f7da12353afc3d9479d3b2ecddbb2a71e6 to prevent a deadlock when opening documents that is unrelated to this change here). [1] https://developer.android.com/about/versions/15/behavior-changes-all [2] https://developer.android.com/about/versions/15/behavior-changes-15#window-insets [3] https://medium.com/androiddevelopers/insets-handling-tips-for-android-15s-edge-to-edge-enforcement-872774e8839b [4] https://developer.android.com/about/versions/16/behavior-changes-16#edge-to-edge Change-Id: Id6d33bfbb7ca49c65e3875efb87c3c575be5f5ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187627 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit 2b77994d455b8d066baf6b67c1820fbb736b538f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187723 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>