Fix send button disappearing for voice drafts.

This commit is contained in:
Clark
2023-03-21 12:03:42 -04:00
committed by Greyson Parrelli
parent eb150d9a15
commit e2ae0063a5

View File

@@ -64,8 +64,10 @@ public class AnimatingToggle extends FrameLayout {
public void displayQuick(@Nullable View view) {
if (view == current && current.getVisibility() == View.VISIBLE) return;
if (current != null) current.setVisibility(View.GONE);
if (view != null) view.setVisibility(View.VISIBLE);
if (view != null) {
view.setVisibility(View.VISIBLE);
view.clearAnimation();
}
current = view;
}
}