akanjs 3.2.0-rc.26 → 3.2.0-rc.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
### Patch Changes
|
|
11
11
|
|
|
12
|
+
- fb564fd: An Akan Android app no longer crashes on launch on Android 12 and 12L (API 31-32). Every launch there closed at once with a `NullPointerException` from `PhoneWindow.getInsetsController`, and the old-WebView screen crashed the same way.
|
|
13
|
+
|
|
14
|
+
- On API 30-32 the window's insets controller reads a decor view the window has not created yet. The activity set the bar icon colors through it before `setContentView`, so it threw.
|
|
15
|
+
- The runtime now creates the decor view first, and the bar settings apply once the view is attached. Showing or hiding the bars goes through the same path.
|
|
16
|
+
- Android 11 and earlier set the bar icon colors through the older flags, and the same call does not throw on Android 13 and later, so neither crashed.
|
|
17
|
+
|
|
18
|
+
Rebuild the Android app on this version to pick up the fix.
|
|
19
|
+
|
|
12
20
|
- 66e6074: `app.relaunch()` and the desktop recovery's relaunch now start an AppImage again from its own file (`$APPIMAGE`) instead of the mount it ran from, which is gone once the app exits, so the app no longer quits without coming back. The relaunched app no longer inherits the old mount's `APPDIR`, `APPIMAGE`, `ARGV0` and `OWD`; its AppImage runtime sets them anew. An app that another AppImage started (an AppImage editor or launcher, say) inherits that AppImage's `APPIMAGE`; relaunch, the deep-link handler and the autostart entry now use `$APPIMAGE` only when the app runs from that AppImage's own mount, so such an app no longer registers the other AppImage in its place.
|
|
13
21
|
- f5c6f07: `externalView.evaluate` on Linux now goes through WebKitGTK's own JavaScript call, as macOS goes through WKWebView's. A script evaluated before the view's first navigation committed used to be rejected with `CANCELLED` and then run anyway at the commit, so a retry ran it twice: it now runs once and is answered once. A result with no JSON form (undefined, an exception, a function, a cycle) used to come back as `""` and is now `null`, as the typings say. An evaluate its web process ended under answers `INTERNAL`, and one a close or a rebuild of the view cut off answers `CANCELLED`.
|
|
14
22
|
- e3de9ef: Native and desktop builds now ship tighter defaults for page content, external links, temporary files and installed updates.
|
|
@@ -922,15 +922,18 @@ class AkanNativeActivity : Activity(), AkanNativePluginContext.Host {
|
|
|
922
922
|
@Suppress("DEPRECATION") // deprecated in 35, where edge-to-edge is enforced and this is a no-op
|
|
923
923
|
fun decorFitsSystemWindows(window: Window, fits: Boolean) = window.setDecorFitsSystemWindows(fits)
|
|
924
924
|
|
|
925
|
+
// API 30-32's PhoneWindow.getInsetsController reads a decor it never creates, so it threw before setContentView.
|
|
926
|
+
private fun controller(window: Window): WindowInsetsController? = window.decorView.let { window.insetsController }
|
|
927
|
+
|
|
925
928
|
fun lightBars(window: Window, status: Boolean, navigation: Boolean) {
|
|
926
929
|
val bits = WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS or WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS
|
|
927
930
|
val light = (if (status) WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS else 0) or
|
|
928
931
|
(if (navigation) WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS else 0)
|
|
929
|
-
window
|
|
932
|
+
controller(window)?.setSystemBarsAppearance(light, bits)
|
|
930
933
|
}
|
|
931
934
|
|
|
932
935
|
fun systemBars(window: Window, visible: Boolean) {
|
|
933
|
-
val controller = window
|
|
936
|
+
val controller = controller(window) ?: return
|
|
934
937
|
if (visible) return controller.show(WindowInsets.Type.systemBars())
|
|
935
938
|
controller.hide(WindowInsets.Type.systemBars())
|
|
936
939
|
controller.systemBarsBehavior = WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
|