Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Get Started' button appears when orientation is changed on last slide #64

Closed
TheDorkKnightRises opened this issue May 31, 2016 · 0 comments

Comments

@TheDorkKnightRises
Copy link
Contributor

In my simple implementation of the material intro, whenever the orientation of the device is changed while on the last slide, the CTA button ('Get Started') is shown. It disappears on moving to any other slide, but inevitably returns if the orientation is changed on the final slide. Tapping the button has no effect.
Here is a screenrecord: Link

Might be linked to issue #63

Here is my code:

@Override
protected void onCreate(Bundle savedInstanceState){

    super.onCreate(savedInstanceState);

    /* Enable/disable skip button */
    setButtonBackVisible(true);
    setButtonBackFunction(BUTTON_BACK_FUNCTION_SKIP);

    /* Enable/disable finish button */
    setButtonNextVisible(true);
    setButtonNextFunction(BUTTON_NEXT_FUNCTION_NEXT_FINISH);

    addSlide(new SimpleSlide.Builder()
            .title(R.string.app_name)
            .description(R.string.intro1)
            .image(R.drawable.ic_launcher)
            .background(R.color.background)
            .backgroundDark(R.color.background_dark)
            .build());

    addSlide(new SimpleSlide.Builder()
            .title(R.string.sorting)
            .description(R.string.intro2)
            .image(R.drawable.ic_launcher)
            .background(R.color.background)
            .backgroundDark(R.color.background_dark)
            .build());

    addSlide(new SimpleSlide.Builder()
            .title(R.string.details)
            .description(R.string.intro3)
            .image(R.drawable.ic_launcher)
            .background(R.color.background)
            .backgroundDark(R.color.background_dark)
            .build());

    addSlide(new SimpleSlide.Builder()
            .title(R.string.details)
            .description(R.string.intro4)
            .image(R.drawable.ic_launcher)
            .background(R.color.background)
            .backgroundDark(R.color.background_dark)
            .build());

    addSlide(new SimpleSlide.Builder()
            .title(R.string.fav)
            .description(R.string.intro5)
            .image(R.drawable.ic_launcher)
            .background(R.color.background)
            .backgroundDark(R.color.background_dark)
            .build());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants