Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47256602 authored by Adam Cohen's avatar Adam Cohen
Browse files

Fixing old bug with AdapterViewFlipper

Change-Id: I3eda7f2451aaf8c75dd38d6d68fdcc04c03d2ee6
parent 06d6c1d2
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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();
    }