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

Re-check for mounted SD card #12

Open
artpi opened this issue Jan 2, 2017 · 3 comments
Open

Re-check for mounted SD card #12

artpi opened this issue Jan 2, 2017 · 3 comments

Comments

@artpi
Copy link

artpi commented Jan 2, 2017

After switching device to Kiosk mode, we have an ability to make the device boot directly to the application (after unlocking screen), which is awesome.

However, this has a sideeffect of starting app before SD card could have mounted and shows 0 books.
It can be solved by killing the app, waiting for the card to mount and then starting app again, but that requires going out of kiosk mode.
It would be nice if when app finds 0 books, it would re-check periodically for mounted sd card again after a timeout.

Device

Moto G 2014 ( XT1068 )

Reproduction steps

  1. Set up kiosk mode
  2. Put audiobooks on sd card and insert into device
  3. Boot the device,
  4. After unlocking screen choose HomerPlayer as default launcher
  5. Boot the device again
  6. See that Homer Player shows no audiobooks even though there are some on sd card
  7. Kill Homer Player ( :( )
  8. Launch again
  9. See that it sees books
@msimonides
Copy link
Owner

Thank you for the detailed bug report.

Can you test one thing for me?

  1. Boot the device with Homer Player in kiosk mode, with books on SD card.
  2. There will be 0 books.
  3. Remove the SD card.
  4. Inserd the SD card again.
  5. Wait 15-20 seconds.

I wonder if the books will be detected after these steps. Thanks in advance!

@artpi
Copy link
Author

artpi commented Jan 9, 2017

I am trying to arrange the proper test, but my grandma does not want me to touch her reader before she finishes the books she is reading :)
Thank you so much for this project, it brings her a lot of joy!
I will write again when she lets me experiment.

msimonides added a commit that referenced this issue Mar 8, 2018
Audiobooks are additionally rescanned when:
- the application UI is shown - this should help if the ContentObserver
  is not called after files are changed. Hopefully this helps with
  issues like #17,
- if no books are found during the initial scan rescan in 10 seconds
  which may help on devices where Homer Player is started before an SD
  card with audiobooks is attached (see #12).
@msimonides
Copy link
Owner

The recent version rescans files in search of audiobooks 10s after the first scan if there was no content (and then every time the UI is started).
Please let me know if this helps with the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants