Commit 568e79bc authored by Louis Romero's avatar Louis Romero Committed by Commit Bot

Update the edit button when all entries are gone.

Bug: 719940
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I3f4ca925dd4e4378e5f7ae8fcb5276660a9cb5fc
Reviewed-on: https://chromium-review.googlesource.com/776816
Commit-Queue: Louis Romero <lpromero@chromium.org>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517801}
parent 9720f94b
......@@ -180,6 +180,9 @@ typedef NS_ENUM(NSInteger, ItemType) {
_exceptions.Remove(urlIndex, NULL);
}
// Update the edit button appearance, in case all exceptions were removed.
[self updateEditButton];
// Must call super at the end of the child implementation.
[super collectionView:collectionView willDeleteItemsAtIndexPaths:indexPaths];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment