elimu-ai / ml-authentication

😶‍🌫️ Android application for authenticating the current student using face recognition
MIT License
16 stars 16 forks source link

Fix MediaPlayer crash #400

Closed sladomic closed 7 years ago

sladomic commented 7 years ago

@jogrimst I first need to merge this pull request before I commit the other changes. Because the other changes we want to revert afterwards, so they should be all in one commit/pull request.

jo-elimu commented 7 years ago

@sladomic When does this crash occur? How can it be reproduced?

sladomic commented 7 years ago

@jogrimst If the face has been recognized in the background thread, and the activity already stopped, but the foreground activity took one last image which was outside the frame and the MediaPlayer tried to push the student to put the face inside the frame