OSDN Git Service

Fix a legit crash that the monkey found.
authorPatrick Scott <phanna@android.com>
Wed, 27 Jan 2010 21:39:11 +0000 (16:39 -0500)
committerPatrick Scott <phanna@android.com>
Thu, 28 Jan 2010 14:11:12 +0000 (09:11 -0500)
commitd944d4d63c9e93b51fae38fc86f0d87fff0e3a21
treedfcbce4241990de253eed322c61f4d8eae18ac90
parent068e48b469f5abca53ee3da38f933cf2c25c93b8
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
src/com/android/browser/TabControl.java