summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2014-08-22 10:46:55 -0700
committerAdam Powell <adamp@google.com>2014-08-22 10:46:55 -0700
commita12aaa75df2a7611f38050e2111a767a20a91b1b (patch)
treeb2a39b91458a518ca7e8f8331c4e7c254040966d /core
parent13c3d9622fb554a2adc43f2f35dcd6a70ca3b806 (diff)
downloadframeworks_base-a12aaa75df2a7611f38050e2111a767a20a91b1b.zip
frameworks_base-a12aaa75df2a7611f38050e2111a767a20a91b1b.tar.gz
frameworks_base-a12aaa75df2a7611f38050e2111a767a20a91b1b.tar.bz2
Add a missing condition when checking measurement for ActionBarContainer
It even said "non-tab" right there. Bug 17202141 Change-Id: Iacc7ec9610d2639aab59dd57ba7194178fb6391f
Diffstat (limited to 'core')
-rw-r--r--core/java/com/android/internal/widget/ActionBarContainer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/com/android/internal/widget/ActionBarContainer.java b/core/java/com/android/internal/widget/ActionBarContainer.java
index a2b8ff2..9b261ac 100644
--- a/core/java/com/android/internal/widget/ActionBarContainer.java
+++ b/core/java/com/android/internal/widget/ActionBarContainer.java
@@ -272,6 +272,9 @@ public class ActionBarContainer extends FrameLayout {
final int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
final View child = getChildAt(i);
+ if (child == mTabContainer) {
+ continue;
+ }
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
nonTabMaxHeight = isCollapsed(child) ? 0 :
child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin;