From f58b4c29890e9aadea3a6a94faa9fb5ce4f7271e Mon Sep 17 00:00:00 2001 From: Grishka Date: Thu, 29 Jun 2023 22:17:59 +0300 Subject: [PATCH] Fix store screenshot generator --- mastodon/build.gradle | 8 ++++---- .../ui/viewcontrollers/ComposeMediaViewController.java | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 79a22977..0db8a020 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -91,8 +91,8 @@ dependencies { appcenterPublicBetaImplementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}" appcenterPublicBetaImplementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}" - androidTestImplementation 'androidx.test:core:1.4.1-alpha05' - androidTestImplementation 'androidx.test.ext:junit:1.1.4-alpha05' - androidTestImplementation 'androidx.test:runner:1.5.0-alpha02' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0-alpha05' + androidTestImplementation 'androidx.test:core:1.5.0' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + androidTestImplementation 'androidx.test:runner:1.5.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' } diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java b/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java index 29ef9f56..32f14a33 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java @@ -287,6 +287,7 @@ public class ComposeMediaViewController{ DraftMediaAttachment draft=new DraftMediaAttachment(); draft.uri=uri; draft.description=description; + draft.mimeType="image/jpeg"; attachmentsView.addView(createMediaAttachmentView(draft)); attachments.add(draft); attachmentsScroller.setVisibility(View.VISIBLE);