commit | d944d4d63c9e93b51fae38fc86f0d87fff0e3a21 | [log] [tgz] |
---|---|---|
author | Patrick Scott <phanna@android.com> | Wed Jan 27 16:39:11 2010 -0500 |
committer | Patrick Scott <phanna@android.com> | Thu Jan 28 09:11:12 2010 -0500 |
tree | dfcbce4241990de253eed322c61f4d8eae18ac90 | |
parent | 068e48b469f5abca53ee3da38f933cf2c25c93b8 [diff] |
Fix a legit crash that the monkey found. If the device is running low on memory, the Browser may free background tabs. removeTab could potentially remove a tab that has a lower index than the current tab. That would cause mCurrentTab to point to the incorrect tab. Update mCurrentTab if that is the case so it is pointing to the correct index. Bug: 2371002