clear drafts immediately upon sending or new intent

fixes #3843
closes #3850
Closes #4571

// FREEBIE
This commit is contained in:
Jake McGinty
2015-11-16 18:38:36 -08:00
committed by Moxie Marlinspike
parent 25da3525fa
commit bcd08956bd
2 changed files with 10 additions and 17 deletions

View File

@@ -129,8 +129,8 @@ public class ViewUtil {
animateIn(view, getAlphaAnimation(0f, 1f, duration));
}
public static void fadeOut(final @NonNull View view, final int duration) {
animateOut(view, getAlphaAnimation(1f, 0f, duration));
public static ListenableFuture<Boolean> fadeOut(final @NonNull View view, final int duration) {
return animateOut(view, getAlphaAnimation(1f, 0f, duration));
}
public static ListenableFuture<Boolean> animateOut(final @NonNull View view, final @NonNull Animation animation) {