diff options
author | Jim Miller <jaggies@google.com> | 2010-01-29 17:25:26 -0800 |
---|---|---|
committer | android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> | 2010-02-12 15:07:06 -0800 |
commit | be7d4798740af5ed3f1be3d629b3ee52d9f643e0 (patch) | |
tree | f52c9d3dab9a05464e2d9f9a3f84be21575561a0 | |
parent | adabcb714cf861425853250aca341f26d5205966 (diff) | |
download | base-be7d4798740af5ed3f1be3d629b3ee52d9f643e0.tar.gz |
Fix 2404771: Expose reset() in SlidingTab widget so we can reset it when we get an incoming call.
Updated javadoc.
-rw-r--r-- | core/java/com/android/internal/widget/SlidingTab.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/core/java/com/android/internal/widget/SlidingTab.java b/core/java/com/android/internal/widget/SlidingTab.java index 940a2e5014ce..07955c4b9aaa 100644 --- a/core/java/com/android/internal/widget/SlidingTab.java +++ b/core/java/com/android/internal/widget/SlidingTab.java @@ -548,12 +548,22 @@ public class SlidingTab extends ViewGroup { return true; } + /** + * Reset the tabs to their original state and stop any existing animation. + * Animate them back into place if animate is true. + * + * @param animate + */ + public void reset(boolean animate) { + mLeftSlider.reset(animate); + mRightSlider.reset(animate); + } + @Override public void setVisibility(int visibility) { // Clear animations so sliders don't continue to animate when we show the widget again. if (visibility != getVisibility() && visibility == View.INVISIBLE) { - mLeftSlider.reset(false); - mRightSlider.reset(false); + reset(false); } super.setVisibility(visibility); } |