diff options
| author | 2013-04-09 23:40:12 +0000 | |
|---|---|---|
| committer | 2013-04-09 23:40:12 +0000 | |
| commit | 2c9669320f6eb7227dd66fb8fe6cce3d39a56f06 (patch) | |
| tree | 627f7aa73ee0a3b8488a9a40315347bd5d7a923a | |
| parent | e5ac8217727e792fc378e70d7439b373952e7674 (diff) | |
| parent | daa1d56726358c4db476dff75c7fd0be201c64c5 (diff) | |
Merge "Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode" into jb-mr2-dev
| -rw-r--r-- | core/java/com/android/internal/widget/ScrollingTabContainerView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/com/android/internal/widget/ScrollingTabContainerView.java b/core/java/com/android/internal/widget/ScrollingTabContainerView.java index b6205689bcec..04931e726bb7 100644 --- a/core/java/com/android/internal/widget/ScrollingTabContainerView.java +++ b/core/java/com/android/internal/widget/ScrollingTabContainerView.java @@ -179,6 +179,9 @@ public class ScrollingTabContainerView extends HorizontalScrollView animateToTab(position); } } + if (mTabSpinner != null && position >= 0) { + mTabSpinner.setSelection(position); + } } public void setContentHeight(int contentHeight) { |