@capawesome/capacitor-android-edge-to-edge-support 8.0.4 → 8.0.6
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/android/build.gradle
CHANGED
|
@@ -31,7 +31,7 @@ android {
|
|
|
31
31
|
buildTypes {
|
|
32
32
|
release {
|
|
33
33
|
minifyEnabled false
|
|
34
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
34
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
lintOptions {
|
|
@@ -144,8 +144,10 @@ public class EdgeToEdge {
|
|
|
144
144
|
mlp.rightMargin = 0;
|
|
145
145
|
mlp.bottomMargin = 0;
|
|
146
146
|
view.setLayoutParams(mlp);
|
|
147
|
-
//
|
|
148
|
-
|
|
147
|
+
// Set a no-op listener that consumes insets without applying them.
|
|
148
|
+
// Using null would allow Android 15's default edge-to-edge handling to take over,
|
|
149
|
+
// which can cause extra padding when re-enabling.
|
|
150
|
+
ViewCompat.setOnApplyWindowInsetsListener(view, (v, windowInsets) -> WindowInsetsCompat.CONSUMED);
|
|
149
151
|
// Remove color overlays
|
|
150
152
|
removeColorOverlays();
|
|
151
153
|
}
|
package/package.json
CHANGED