@capawesome/capacitor-android-edge-to-edge-support 7.2.2 → 7.2.3

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/README.md CHANGED
@@ -1,11 +1,17 @@
1
1
  # @capawesome/capacitor-android-edge-to-edge-support
2
2
 
3
- Capacitor plugin to support [edge-to-edge](https://developer.android.com/develop/ui/views/layout/edge-to-edge) display on Android.
3
+ Capacitor plugin to support [edge-to-edge](https://developer.android.com/develop/ui/views/layout/edge-to-edge) display on Android with advanced features like setting the background color of the status bar and navigation bar.
4
4
 
5
5
  | Before | After | Before | After |
6
6
  | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
7
7
  | <image src="https://github.com/user-attachments/assets/1c42aa63-1191-4b9b-860f-ffc47881d815" width="200" /> | <image src="https://github.com/user-attachments/assets/a4df4e58-0c21-45b5-aadd-ca197308016a" width="200" /> | <image src="https://github.com/user-attachments/assets/22c94f95-a0c4-4ace-8a3b-3a0feabf9191" width="200" /> | <image src="https://github.com/user-attachments/assets/21ece022-fb74-4067-889b-6922ecd0e2a5" width="200" /> |
8
8
 
9
+ <div class="capawesome-z29o10a">
10
+ <a href="https://cloud.capawesome.io/" target="_blank">
11
+ <img alt="Deliver Live Updates to your Capacitor app with Capawesome Cloud" src="https://cloud.capawesome.io/assets/banners/cloud-deploy-real-time-app-updates.png?t=1" />
12
+ </a>
13
+ </div>
14
+
9
15
  ## Installation
10
16
 
11
17
  ```bash
@@ -50,7 +50,9 @@ public class EdgeToEdge {
50
50
  // Set insets
51
51
  WindowInsetsCompat currentInsets = ViewCompat.getRootWindowInsets(view);
52
52
  if (currentInsets != null) {
53
- Insets systemBarsInsets = currentInsets.getInsets(WindowInsetsCompat.Type.systemBars());
53
+ Insets systemBarsInsets = currentInsets.getInsets(
54
+ WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout()
55
+ );
54
56
  Insets imeInsets = currentInsets.getInsets(WindowInsetsCompat.Type.ime());
55
57
  boolean keyboardVisible = currentInsets.isVisible(WindowInsetsCompat.Type.ime());
56
58
 
@@ -66,7 +68,9 @@ public class EdgeToEdge {
66
68
  // Set listener
67
69
  ViewCompat.setOnApplyWindowInsetsListener(view, (v, windowInsets) -> {
68
70
  // Retrieve system bars insets (for status/navigation bars)
69
- Insets systemBarsInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
71
+ Insets systemBarsInsets = windowInsets.getInsets(
72
+ WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout()
73
+ );
70
74
  // Retrieve keyboard (IME) insets
71
75
  Insets imeInsets = windowInsets.getInsets(WindowInsetsCompat.Type.ime());
72
76
  boolean keyboardVisible = windowInsets.isVisible(WindowInsetsCompat.Type.ime());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/capacitor-android-edge-to-edge-support",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "description": "Capacitor plugin to support edge-to-edge display on Android.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",