diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-12-23 18:17:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-23 18:17:09 +0000 |
commit | 2b28c85b43c81ab89a3e7df0c46baa9130c6f2d1 (patch) | |
tree | 79c7376d5f0dd5fee105374242783b3aecbc89d0 /patches | |
parent | 1e4ea1a2717dc88484820cb4f4ad0e21eb79bc5f (diff) | |
download | voidsky-2b28c85b43c81ab89a3e7df0c46baa9130c6f2d1.tar.zst |
Cropper - opt out of edge-to-edge enforcement on Android 15 (#7254)
* opt out of edge-to-edge enforcement * revert unintended change
Diffstat (limited to 'patches')
-rw-r--r-- | patches/react-native-image-crop-picker+0.41.6.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/react-native-image-crop-picker+0.41.6.patch b/patches/react-native-image-crop-picker+0.41.6.patch index 7017ac80e..57589931a 100644 --- a/patches/react-native-image-crop-picker+0.41.6.patch +++ b/patches/react-native-image-crop-picker+0.41.6.patch @@ -1,3 +1,36 @@ +diff --git a/node_modules/react-native-image-crop-picker/android/src/main/AndroidManifest.xml b/node_modules/react-native-image-crop-picker/android/src/main/AndroidManifest.xml +index 391f303..8e2c3db 100644 +--- a/node_modules/react-native-image-crop-picker/android/src/main/AndroidManifest.xml ++++ b/node_modules/react-native-image-crop-picker/android/src/main/AndroidManifest.xml +@@ -24,7 +24,7 @@ + + <activity + android:name="com.yalantis.ucrop.UCropActivity" +- android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> ++ android:theme="@style/Theme.UCropNoEdgeToEdge" /> + </application> + + </manifest> +diff --git a/node_modules/react-native-image-crop-picker/android/src/main/res/values-v35/styles.xml b/node_modules/react-native-image-crop-picker/android/src/main/res/values-v35/styles.xml +new file mode 100644 +index 0000000..396d5a8 +--- /dev/null ++++ b/node_modules/react-native-image-crop-picker/android/src/main/res/values-v35/styles.xml +@@ -0,0 +1,5 @@ ++<resources> ++ <style name="Theme.UCropNoEdgeToEdge" parent="Theme.AppCompat.Light.NoActionBar"> ++ <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item> ++ </style> ++</resources> +diff --git a/node_modules/react-native-image-crop-picker/android/src/main/res/values/styles.xml b/node_modules/react-native-image-crop-picker/android/src/main/res/values/styles.xml +new file mode 100644 +index 0000000..50129b6 +--- /dev/null ++++ b/node_modules/react-native-image-crop-picker/android/src/main/res/values/styles.xml +@@ -0,0 +1,3 @@ ++<resources> ++ <style name="Theme.UCropNoEdgeToEdge" parent="Theme.AppCompat.Light.NoActionBar"/> ++</resources> diff --git a/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m b/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m index 9f20973..68d4766 100644 --- a/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m |