From 15021bffef9f03f51c5ba293edbd881cf13ac5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= Date: Thu, 3 Dec 2020 11:59:51 +0100 Subject: [PATCH] Inline getAttachmentFileIntent() --- .../briar/android/view/TextAttachmentController.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/briar-android/src/main/java/org/briarproject/briar/android/view/TextAttachmentController.java b/briar-android/src/main/java/org/briarproject/briar/android/view/TextAttachmentController.java index 2534a3cdc..07d7f08a6 100644 --- a/briar-android/src/main/java/org/briarproject/briar/android/view/TextAttachmentController.java +++ b/briar-android/src/main/java/org/briarproject/briar/android/view/TextAttachmentController.java @@ -115,19 +115,15 @@ public class TextAttachmentController extends TextSendController builder.show(); return; } - Intent intent = getAttachFileIntent(); + Intent intent = UiUtils.createSelectImageIntent(true); if (attachmentListener.getLifecycle().getCurrentState() != DESTROYED) { attachmentListener.onAttachImage(intent); } } - private Intent getAttachFileIntent() { - return UiUtils.createSelectImageIntent(true); - } - /** - * This is called with the result Intent - * returned by the Activity started with {@link #getAttachFileIntent()}. + * This is called with the result Intent returned by the Activity started + * with {@link UiUtils#createSelectImageIntent(boolean)}. *

* This method must be called at most once per call to * {@link AttachmentListener#onAttachImage(Intent)}.