diff options
author | Tony Wickham <twickham@google.com> | 2015-12-18 13:13:48 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2015-12-18 13:13:48 -0800 |
commit | ca656e3c69266234486c6669fc63244330cb0549 (patch) | |
tree | c26ba530f9c2c5d28eec64822fd14ba1854fcc11 /res/xml/default_workspace_5x5.xml | |
parent | b740f59c7d572d54402e3a74fb2a23c0f1b1af48 (diff) | |
download | android_packages_apps_Trebuchet-ca656e3c69266234486c6669fc63244330cb0549.tar.gz android_packages_apps_Trebuchet-ca656e3c69266234486c6669fc63244330cb0549.tar.bz2 android_packages_apps_Trebuchet-ca656e3c69266234486c6669fc63244330cb0549.zip |
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
Diffstat (limited to 'res/xml/default_workspace_5x5.xml')
0 files changed, 0 insertions, 0 deletions