@falconeta/capacitor-android-full-view 7.0.0 → 7.0.1

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.
@@ -33,7 +33,7 @@ public class AndroidFullView {
33
33
  return titleBarHeight / metrics.density;
34
34
  }
35
35
 
36
- public float getBottom() {
36
+ public int getBottom() {
37
37
  DisplayMetrics metrics = this.activity.getResources().getDisplayMetrics();
38
38
  int resourceId = this.activity.getResources().getIdentifier("navigation_bar_height", "dimen", "android");
39
39
  float navigationBarHeight = 0;
@@ -41,7 +41,6 @@ public class AndroidFullView {
41
41
  if (resourceId > 0) {
42
42
  navigationBarHeight = this.activity.getResources().getDimensionPixelSize(resourceId);
43
43
  }
44
-
45
- return navigationBarHeight / metrics.density;
44
+ return (int) (navigationBarHeight / metrics.density);
46
45
  }
47
46
  }
@@ -28,7 +28,7 @@ public class AndroidFullViewPlugin extends Plugin {
28
28
 
29
29
  @PluginMethod
30
30
  public void bottom(PluginCall call) {
31
- float navigationBarHeight = implementation.getBottom();
31
+ int navigationBarHeight = implementation.getBottom();
32
32
  JSObject ret = new JSObject();
33
33
 
34
34
  ret.put("value", navigationBarHeight);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@falconeta/capacitor-android-full-view",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Capacitor plugin for retrieving proper top offset, bottom offset and set full screen ONLY for android",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",