diff options
author | sam cheung <samuel.cheung@t-mobile.com> | 2009-04-06 09:48:43 -0700 |
---|---|---|
committer | Josh Guilfoyle <Josh.Guilfoyle@T-Mobile.com> | 2009-07-29 14:24:38 -0700 |
commit | 56f133672438ddc7bb01bbfd0477ba3f4aa8e00c (patch) | |
tree | 770eabc7cf2377b2b593600925a9fe8fa47a6db7 /core/java/android/widget | |
parent | d2c4822da75f06db91c7095e3214dc28a46af539 (diff) | |
download | frameworks_base-56f133672438ddc7bb01bbfd0477ba3f4aa8e00c.zip frameworks_base-56f133672438ddc7bb01bbfd0477ba3f4aa8e00c.tar.gz frameworks_base-56f133672438ddc7bb01bbfd0477ba3f4aa8e00c.tar.bz2 |
fix Carousel Crashes when moving focus
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/TabHost.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java index c58cf05..1a9a6e8 100644 --- a/core/java/android/widget/TabHost.java +++ b/core/java/android/widget/TabHost.java @@ -422,7 +422,7 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); } public TabSpec setIndicator() { - mIndicatorStrategy = new ViewStubIndicatorStrategy(); + mIndicatorStrategy = new NullIndicatorStrategy(); return this; } @@ -492,6 +492,15 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); void tabClosed(); } + private class NullIndicatorStrategy implements IndicatorStrategy { + + public View createIndicatorView() { + return null; + } + + + } + private class ViewStubIndicatorStrategy implements IndicatorStrategy { public View createIndicatorView() { |