From 1f1b37edd535de98f38480d10149d5b3027217c1 Mon Sep 17 00:00:00 2001 From: Jakob Nixdorf Date: Wed, 28 Feb 2018 14:32:41 +0100 Subject: [PATCH] Some minor fixes --- .../flocke/andotp/Activities/IntroScreenActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java index 2909d033..1ba7046d 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java @@ -35,7 +35,6 @@ import android.text.Editable; import android.text.InputType; import android.text.TextWatcher; import android.text.method.PasswordTransformationMethod; -import android.util.Log; import android.util.SparseArray; import android.view.LayoutInflater; import android.view.View; @@ -47,7 +46,6 @@ import android.widget.EditText; import android.widget.LinearLayout; import android.widget.Spinner; import android.widget.TextView; -import android.widget.Toast; import com.heinrichreimersoftware.materialintro.app.IntroActivity; import com.heinrichreimersoftware.materialintro.app.OnNavigationBlockedListener; @@ -115,7 +113,9 @@ public class IntroScreenActivity extends IntroActivity { .build() ); - authenticationFragment.setSlidePos(2); + // Tell the fragment where it is located + authenticationFragment.setSlidePos(getSlides().size()); + addSlide(new FragmentSlide.Builder() .background(R.color.colorPrimary) .backgroundDark(R.color.colorPrimaryDark)