RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 405 forks source link

Make device.bootStart() and device.shutDown() blocking operations so … #330

Closed K1rakishou closed 5 years ago

K1rakishou commented 5 years ago

…there is always a guarantee that they will be executed

If activity starts and then immediately stops (startActivityForResult/setResult, finish) then there is a possibility that device.shutDown() won't be executed leading to an activity leak