Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 165067a2 authored by Daniel Lehmann's avatar Daniel Lehmann Committed by Android (Google) Code Review
Browse files

Merge "Stop double-animating when removing the last editor. Fixes jump cuts" into jb-mr1-dev

parents bcb3401c bc365a61
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -113,18 +113,12 @@ public class KindSectionView extends LinearLayout implements EditorListener {
    public void onDeleteRequested(Editor editor) {
        // If there is only 1 editor in the section, then don't allow the user to delete it.
        // Just clear the fields in the editor.
        final boolean animate;
        if (getEditorCount() == 1) {
            editor.clearAllFields();
            animate = true;
        } else {
            // Otherwise it's okay to delete this {@link Editor}
            editor.deleteEditor();

            // This is already animated, don't do anything further here
            animate = false;
        }
        updateAddFooterVisible(animate);
    }

    @Override