OSDN Git Service

DO NOT MERGE Cherry-pick of cd59febcea2 from master
authorGilles Debunne <debunne@google.com>
Fri, 25 Feb 2011 22:34:20 +0000 (14:34 -0800)
committerJason Chen <jasonchen@google.com>
Wed, 2 Mar 2011 00:46:36 +0000 (16:46 -0800)
commit4797f020cd255aa606d0bb1ca419de0d4facc3c6
treeb22823fa3682fbd1c121c3949a2337edcbbd3de8
parenta47ef32e8bd8eb944e97e12e3b1fac87f87bcd76
DO NOT MERGE Cherry-pick of cd59febcea2 from master

AIOOB exception fix in TabWidget

Bug http://code.google.com/p/android/issues/detail?id=15005

The problem was not specific to the legacy theme. The code that first
measure the tab's width with no contraint was incorrectly using the
mImposedTabsWidth array which could not have the right size if a
child was added.

The first measure after a child is added should indeed crash. Could
be investigated. This fix is sure anyway.

Change-Id: If5015aaa2d5574939fd5d6c6362ed6db94d35d4a
core/java/android/widget/TabWidget.java