Add save-as-you-compose drafts.

This commit is contained in:
Cody Henthorne
2022-08-05 17:00:11 -04:00
parent 192509f762
commit 0a76eb81e6
10 changed files with 356 additions and 335 deletions

View File

@@ -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();
}
}