mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Add save-as-you-compose drafts.
This commit is contained in:
@@ -489,6 +489,12 @@ public class AttachmentManager {
|
||||
private class RemoveButtonListener implements View.OnClickListener {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
slide.ifPresent(oldSlide -> {
|
||||
if (oldSlide instanceof LocationSlide) {
|
||||
attachmentListener.onLocationRemoved();
|
||||
}
|
||||
});
|
||||
|
||||
cleanup();
|
||||
clear(GlideApp.with(context.getApplicationContext()), true);
|
||||
}
|
||||
@@ -496,6 +502,7 @@ public class AttachmentManager {
|
||||
|
||||
public interface AttachmentListener {
|
||||
void onAttachmentChanged();
|
||||
void onLocationRemoved();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user