Fix wakelock not being released when EC returns an error#6752
Conversation
|
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
|
I just tested this branch and I don't think it's solving the issue. If I got it right, the issue seems to be I believe since the WebView was destroyed, it would be OK to not use the if (proximitySensorWakeLock?.isHeld == true) {
proximitySensorWakeLock?.release()
}Directly inside the method. Yep, that seemed to do the trick when I just tested it. I'll leave it up to you to update the PR, otherwise let me know and I can create a new one with the mentioned changes. |
|
@jmartinesp thanks for investigating this, I would prefer for you to fix it properly, I'm not very familiar with the logic here. |
Content
Release wakelock when Element Call exits with an error
Motivation and context
It wasn't released, and so I had the proximity sensor active even when I've closed Element Call.
Screenshots / GIFs
Tests
Tested devices
Checklist