@capacitor/camera 6.1.1 → 6.1.2
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/src/main/java/com/capacitorjs/plugins/camera/CameraBottomSheetDialogFragment.java
CHANGED
|
@@ -113,10 +113,12 @@ public class CameraBottomSheetDialogFragment extends BottomSheetDialogFragment {
|
|
|
113
113
|
dialog.setContentView(parentLayout.getRootView());
|
|
114
114
|
|
|
115
115
|
CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) ((View) parentLayout.getParent()).getLayoutParams();
|
|
116
|
-
CoordinatorLayout.Behavior behavior = params.getBehavior();
|
|
116
|
+
CoordinatorLayout.Behavior<View> behavior = params.getBehavior();
|
|
117
117
|
|
|
118
|
-
if (behavior
|
|
119
|
-
(
|
|
118
|
+
if (behavior instanceof BottomSheetBehavior) {
|
|
119
|
+
BottomSheetBehavior<View> bottomSheetBehavior = (BottomSheetBehavior<View>) behavior;
|
|
120
|
+
bottomSheetBehavior.addBottomSheetCallback(mBottomSheetBehaviorCallback);
|
|
121
|
+
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/camera",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "The Camera API provides the ability to take a photo with the camera or choose an existing one from the photo album.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "68db531c9246d499ef270573dd8ed8396558ab6b"
|
|
85
85
|
}
|