@capgo/inappbrowser 7.9.3 → 7.9.5

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.
@@ -264,6 +264,15 @@ public class WebViewDialog extends Dialog {
264
264
  WindowManager.LayoutParams.FLAG_FULLSCREEN
265
265
  );
266
266
  setContentView(R.layout.activity_browser);
267
+
268
+ // Set fitsSystemWindows only for Android 10 (API 29)
269
+ if (android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.Q) {
270
+ View coordinator = findViewById(R.id.coordinator_layout);
271
+ if (coordinator != null) coordinator.setFitsSystemWindows(true);
272
+ View appBar = findViewById(R.id.app_bar_layout);
273
+ if (appBar != null) appBar.setFitsSystemWindows(true);
274
+ }
275
+
267
276
  getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
268
277
 
269
278
  // Make status bar transparent
@@ -2034,7 +2043,7 @@ public class WebViewDialog extends Dialog {
2034
2043
  );
2035
2044
  }
2036
2045
  String s = String.format(
2037
- "try {function getHeaders() {const h = {}; %s return h}; window.InAppBrowserProxyRequest(new Request(atob('%s'), {headers: getHeaders(), method: '%s'})).then(async (res) => Capacitor.Plugins.InAppBrowser.lsuakdchgbbaHandleProxiedRequest({ok: true, result: (!!res ? {headers: Object.fromEntries(res.headers.entries()), code: res.status, body: (await res.text())} : null), id: '%s'})).catch((e) => Capacitor.Plugins.InAppBrowser.lsuakdchgbbaHandleProxiedRequest({ok: false, result: e.toString(), id: '%s'})} catch (e) {Capacitor.Plugins.InAppBrowser.lsuakdchgbbaHandleProxiedRequest({ok: false, result: e.toString(), id: '%s'})}",
2046
+ "try {function getHeaders() {const h = {}; %s return h}; window.InAppBrowserProxyRequest(new Request(atob('%s'), {headers: getHeaders(), method: '%s'})).then(async (res) => Capacitor.Plugins.InAppBrowser.lsuakdchgbbaHandleProxiedRequest({ok: true, result: (!!res ? {headers: Object.fromEntries(res.headers.entries()), code: res.status, body: (await res.text())} : null), id: '%s'})).catch((e) => Capacitor.Plugins.InAppBrowser.lsuakdchgbbaHandleProxiedRequest({ok: false, result: e.toString(), id: '%s'})} catch (e) {Capacitor.Plugins.InAppBrowser.lsuakdchgbbaHandleProxiedRequest({ok: false, result: e.toString(), id: '%s'})",
2038
2047
  headers,
2039
2048
  toBase64(request.getUrl().toString()),
2040
2049
  request.getMethod(),
@@ -2,6 +2,7 @@
2
2
  <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
3
  xmlns:app="http://schemas.android.com/apk/res-auto"
4
4
  xmlns:tools="http://schemas.android.com/tools"
5
+ android:id="@+id/coordinator_layout"
5
6
  android:layout_width="match_parent"
6
7
  android:layout_height="match_parent"
7
8
  tools:context="com.cap.browser.plugin.WebViewActivity">
@@ -14,6 +15,7 @@
14
15
  android:background="@android:color/transparent" />
15
16
 
16
17
  <com.google.android.material.appbar.AppBarLayout
18
+ android:id="@+id/app_bar_layout"
17
19
  android:layout_width="match_parent"
18
20
  android:layout_height="wrap_content"
19
21
  android:layout_marginTop="0dp"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "7.9.3",
3
+ "version": "7.9.5",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",