Skip to content

Commit 778625f

Browse files
sowjanyakchAndyScherzinger
authored andcommitted
fix crop screen
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
1 parent 38d3a16 commit 778625f

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ dependencies {
317317
implementation 'com.github.nextcloud.android-common:ui:0.33.1'
318318
implementation 'com.github.nextcloud.android-common:core:0.33.1'
319319
implementation 'com.github.nextcloud-deps:android-talk-webrtc:132.6834.0'
320+
implementation 'com.github.yalantis:ucrop:2.2.11'
320321

321322
gplayImplementation 'com.google.android.gms:play-services-base:18.10.0'
322323
gplayImplementation "com.google.firebase:firebase-messaging:25.0.1"

app/src/main/AndroidManifest.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,16 @@
253253
android:name=".conversationinfo.ConversationInfoActivity"
254254
android:theme="@style/AppTheme" />
255255

256+
<activity
257+
android:name="com.github.dhaval2404.imagepicker.ImagePickerActivity"
258+
android:theme="@style/ImagePickerTheme.NonFullScreen"
259+
tools:replace="android:theme" />
260+
261+
<activity
262+
android:name="com.yalantis.ucrop.UCropActivity"
263+
android:theme="@style/ImagePickerTheme.NonFullScreen"
264+
tools:replace="android:theme" />
265+
256266
<activity
257267
android:name=".conversationinfoedit.ConversationInfoEditActivity"
258268
android:theme="@style/AppTheme" />

app/src/main/res/values/styles.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
<item name="iconTint">@color/fontAppbar</item>
4545
</style>
4646

47+
48+
<style name="ImagePickerTheme.NonFullScreen" parent="Theme.Material3.DayNight.NoActionBar">
49+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
50+
<item name="android:fitsSystemWindows">true</item>
51+
</style>
52+
4753
<style name="ChatSendButtonMenu" parent="@style/Widget.Material3.PopupMenu">
4854
<item name="android:dropDownVerticalOffset">-90dp</item>
4955
<item name="android:colorPrimary">@color/fg_inverse</item>

gradle/verification-metadata.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18125,6 +18125,14 @@
1812518125
<sha256 value="2e65fbabc8876cb388abf006b399ed5241e963940e0798d0e2310e339aaf738b" origin="Generated by Gradle" reason="Artifact is not signed"/>
1812618126
</artifact>
1812718127
</component>
18128+
<component group="com.github.yalantis" name="ucrop" version="2.2.11">
18129+
<artifact name="ucrop-2.2.11.aar">
18130+
<sha256 value="c12db23784aaa954d8998106cf5c1cfee2993c62f7601c790da8e21d4c51a0a9" origin="Generated by Gradle" reason="Artifact is not signed"/>
18131+
</artifact>
18132+
<artifact name="ucrop-2.2.11.pom">
18133+
<sha256 value="1e070fcc04b929e8b0f847463240550a1639e4bc2e7110b0a57f4f1366247580" origin="Generated by Gradle" reason="Artifact is not signed"/>
18134+
</artifact>
18135+
</component>
1812818136
<component group="com.github.yalantis" name="ucrop" version="2.2.6">
1812918137
<artifact name="ucrop-2.2.6.aar">
1813018138
<sha256 value="aa2a5929b6916d05d347a24ddb1319e0330f109f683b9080897d73fdb8638e6b" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)