Skip to content

Commit

Permalink
Merge pull request #7 from bevzaanton/master
Browse files Browse the repository at this point in the history
Fixed finish button visibility when only 2 cards
  • Loading branch information
ahulr authored May 26, 2017
2 parents e44f97e + c447d0c commit f4e5233
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@

import android.animation.Animator;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.annotation.ColorRes;
import android.support.annotation.IntegerRes;
import android.support.annotation.RequiresApi;
import android.support.annotation.StringRes;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
Expand Down Expand Up @@ -138,6 +134,8 @@ public void onPageSelected(int position) {
} else if (position == firstPagePosition) {
fadeOut(ivPrev);
fadeIn(ivNext);
hideFinish();
fadeIn(circleIndicatorView);
} else {
fadeIn(circleIndicatorView);
hideFinish();
Expand Down

0 comments on commit f4e5233

Please sign in to comment.