commit | ca656e3c69266234486c6669fc63244330cb0549 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Fri Dec 18 13:13:48 2015 -0800 |
committer | Tony Wickham <twickham@google.com> | Fri Dec 18 13:13:48 2015 -0800 |
tree | c26ba530f9c2c5d28eec64822fd14ba1854fcc11 | |
parent | b740f59c7d572d54402e3a74fb2a23c0f1b1af48 [diff] |
Fix item count check in Folder#replaceFolderWithFinalItem() Instead of checking the item count (number of views), check the number of items in the model, since that is where the item is being removed. This way, mInfo.contents.remove(0) will never be out of bounds. Bug: 25666490 Change-Id: I0eb880b366157bddb5a8c342d538737722b7f0cd