diff --git a/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java b/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java index 7a991576f..5afe92ef6 100644 --- a/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java +++ b/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java @@ -29,7 +29,6 @@ import android.support.v4.view.ViewCompat; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; -import android.util.Log; import android.util.TypedValue; import android.view.View; import android.view.WindowManager; @@ -285,6 +284,8 @@ else if (pager.getCurrentItem() >= count - 1) { while (endPosition >= 0 && canGoBackward(endPosition, true)) { endPosition--; } + if (autoplayCounter > 0) + autoplayCounter--; } else if (canGoForward(endPosition, true)) { endPosition++; @@ -295,12 +296,8 @@ else if (canGoForward(endPosition, true)) { pager.setCurrentItem(endPosition); - if (autoplayCounter > 0) - autoplayCounter--; - else if (autoplayCounter == 0) - return false; + return autoplayCounter != 0; - return true; } public void previousSlide() { @@ -579,7 +576,6 @@ private void updateViewPositions() { float yOffset = getResources().getDimensionPixelSize(R.dimen.mi_y_offset); float alpha = 1 - (positionOffset * 0.5f); - Log.i("alpha: ", "" + alpha); frame.setAlpha(alpha); if (buttonBackFunction == BUTTON_BACK_FUNCTION_SKIP) { diff --git a/src/main/java/com/heinrichreimersoftware/materialintro/slide/FragmentSlide.java b/src/main/java/com/heinrichreimersoftware/materialintro/slide/FragmentSlide.java index 3f18c4800..7b18bb0c9 100644 --- a/src/main/java/com/heinrichreimersoftware/materialintro/slide/FragmentSlide.java +++ b/src/main/java/com/heinrichreimersoftware/materialintro/slide/FragmentSlide.java @@ -9,7 +9,6 @@ import android.support.annotation.StyleRes; import android.support.v4.app.Fragment; import android.support.v7.view.ContextThemeWrapper; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -170,7 +169,6 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, View root = localInflater.inflate(getArguments().getInt(ARGUMENT_LAYOUT_RES), container, false); parallaxLayout = findParallaxLayout(root); - Log.i("FragmentSlide", "parallaxLayout: " + parallaxLayout); return root; } diff --git a/src/main/java/com/heinrichreimersoftware/materialintro/view/InkPageIndicator.java b/src/main/java/com/heinrichreimersoftware/materialintro/view/InkPageIndicator.java index 6ec01f4c1..45298b5db 100644 --- a/src/main/java/com/heinrichreimersoftware/materialintro/view/InkPageIndicator.java +++ b/src/main/java/com/heinrichreimersoftware/materialintro/view/InkPageIndicator.java @@ -30,7 +30,6 @@ import android.support.annotation.ColorInt; import android.support.v4.view.ViewPager; import android.util.AttributeSet; -import android.util.Log; import android.view.View; import android.view.animation.Interpolator; @@ -605,9 +604,7 @@ private void setSelectedPage(int now) { pageChanging = true; previousPage = currentPage; - Log.i("IPI", "setSelectedPage: currentPage(before): " + currentPage); currentPage = now; - Log.i("IPI", "setSelectedPage: currentPage(after): " + currentPage); final int steps = Math.abs(now - previousPage); if (steps > 1) {