diff options
| author | 2011-01-28 14:11:17 -0800 | |
|---|---|---|
| committer | 2011-01-28 14:11:17 -0800 | |
| commit | 1ec7e20237932f14588a90e5d7378acad8efec80 (patch) | |
| tree | 525c7e9afdf721b3718d372272a13a8a5d78df3f | |
| parent | cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b (diff) | |
Fix issue #3403539: WordPress crashes on Honeycomb
Change-Id: Ia86e26b5bd266d8e3362a04e412a58b98a062d5f
| -rw-r--r-- | core/java/android/widget/TabWidget.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/widget/TabWidget.java b/core/java/android/widget/TabWidget.java index 51ece3318616..1a4ff29c458b 100644 --- a/core/java/android/widget/TabWidget.java +++ b/core/java/android/widget/TabWidget.java @@ -132,7 +132,17 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener { mRightStrip = resources.getDrawable( com.android.internal.R.drawable.tab_bottom_right_v4); } - } + } else { + // Use modern color scheme for Eclair and beyond + if (mLeftStrip == null) { + mLeftStrip = resources.getDrawable( + com.android.internal.R.drawable.tab_bottom_left); + } + if (mRightStrip == null) { + mRightStrip = resources.getDrawable( + com.android.internal.R.drawable.tab_bottom_right); + } + } // Deal with focus, as we don't want the focus to go by default // to a tab other than the current tab |