Stop double-animating when removing the last editor. Fixes jump cuts
Bug:6009430
Change-Id: I8e0a24334a5d92bc300f4d0ff15da99f4786852c
diff --git a/src/com/android/contacts/editor/KindSectionView.java b/src/com/android/contacts/editor/KindSectionView.java
index 2d4263b..9cfe0a3 100644
--- a/src/com/android/contacts/editor/KindSectionView.java
+++ b/src/com/android/contacts/editor/KindSectionView.java
@@ -113,18 +113,12 @@
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