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

Commit 1c8e91ff authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Skip refresh if number of pages hasn't changed" into rvc-dev am:...

Merge "Skip refresh if number of pages hasn't changed" into rvc-dev am: aa5f48cf am: bd0804bb am: 7d46ec9e am: 955d5157

Change-Id: I3b25635b09707a2c0ff393f5d7c352334adb2e84
parents c887315e 955d5157
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -45,6 +45,9 @@ public class PageIndicator extends ViewGroup {
    }

    public void setNumPages(int numPages) {
        if (numPages == getChildCount()) {
            return;
        }
        TypedArray array = getContext().obtainStyledAttributes(
                new int[]{android.R.attr.colorControlActivated});
        int color = array.getColor(0, 0);
@@ -54,6 +57,9 @@ public class PageIndicator extends ViewGroup {

    /** Oveload of setNumPages that allows the indicator color to be specified.*/
    public void setNumPages(int numPages, int color) {
        if (numPages == getChildCount()) {
            return;
        }
        setVisibility(numPages > 1 ? View.VISIBLE : View.GONE);
        if (mAnimating) {
            Log.w(TAG, "setNumPages during animation");