Skip to content

Commit

Permalink
Removed unused logs, small behavior change to autoplay (heinrichreime…
Browse files Browse the repository at this point in the history
  • Loading branch information
heinrichreimer committed Jun 23, 2016
1 parent d22f992 commit 4e180d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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++;
Expand All @@ -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() {
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4e180d5

Please sign in to comment.