diff options
author | Adam Cohen <adamcohen@google.com> | 2011-07-22 16:28:21 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-07-22 16:28:21 -0700 |
commit | 4725660292bcf11c84e9c7da127fd0215fb58e81 (patch) | |
tree | 22e2f8a8bce1bcd1dbf5441c14f65183303f796e | |
parent | 06d6c1d2289972f253f9c30994562e3ab8a7d7a1 (diff) | |
download | frameworks_base-4725660292bcf11c84e9c7da127fd0215fb58e81.zip frameworks_base-4725660292bcf11c84e9c7da127fd0215fb58e81.tar.gz frameworks_base-4725660292bcf11c84e9c7da127fd0215fb58e81.tar.bz2 |
Fixing old bug with AdapterViewFlipper
Change-Id: I3eda7f2451aaf8c75dd38d6d68fdcc04c03d2ee6
-rw-r--r-- | core/java/android/widget/AdapterViewFlipper.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/widget/AdapterViewFlipper.java b/core/java/android/widget/AdapterViewFlipper.java index 273c258..4419886 100644 --- a/core/java/android/widget/AdapterViewFlipper.java +++ b/core/java/android/widget/AdapterViewFlipper.java @@ -62,15 +62,14 @@ public class AdapterViewFlipper extends AdapterViewAnimator { super(context, attrs); TypedArray a = context.obtainStyledAttributes(attrs, - com.android.internal.R.styleable.ViewFlipper); + com.android.internal.R.styleable.AdapterViewFlipper); mFlipInterval = a.getInt( - com.android.internal.R.styleable.ViewFlipper_flipInterval, DEFAULT_INTERVAL); + com.android.internal.R.styleable.AdapterViewFlipper_flipInterval, DEFAULT_INTERVAL); mAutoStart = a.getBoolean( - com.android.internal.R.styleable.ViewFlipper_autoStart, false); + com.android.internal.R.styleable.AdapterViewFlipper_autoStart, false); - // By default we want the flipper to loop - mLoopViews = a.getBoolean( - com.android.internal.R.styleable.AdapterViewAnimator_loopViews, true); + // A view flipper should cycle through the views + mLoopViews = true; a.recycle(); } |