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

onAttach not reattaching listener when screen orientation changes #53

Open
Mek7 opened this issue May 1, 2015 · 0 comments
Open

onAttach not reattaching listener when screen orientation changes #53

Mek7 opened this issue May 1, 2015 · 0 comments

Comments

@Mek7
Copy link

Mek7 commented May 1, 2015

Hi,
I just made a github account to report this issue. It can be easily reproduced.

  1. Make sure screen rotation is enabled
  2. Open directory chooser
  3. Rotate screen
  4. Tap the bottom buttons - they stopped working
    From my investigation, when screen is rotated. onDetach is called and then onAttach again. But Option.some() call returns None for some reason. So the listeners attached to the buttons stop working.
    I am a noob in android programming so I cannot fix it myself. Otherwise I would be kind enough to submit a pull request.
    FYI, I am using it in fragment mode.
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