mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Inline getAttachmentFileIntent()
This commit is contained in:
committed by
Torsten Grote
parent
43c6ae4258
commit
15021bffef
@@ -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)}.
|
||||
* <p>
|
||||
* This method must be called at most once per call to
|
||||
* {@link AttachmentListener#onAttachImage(Intent)}.
|
||||
|
||||
Reference in New Issue
Block a user