guardianproject / orbot

The Github home of Orbot: Tor on Android (Also available on gitlab!)
https://gitlab.com/guardianproject/orbot
Other
1.98k stars 325 forks source link

Fix IllegalStateException crash from log #1118

Closed meenbeese closed 1 month ago

meenbeese commented 1 month ago

This PR prevents a crash by first checking if the fragment is already added before creating a new one. This ensures that only one instance of the log sheet exists at a time, preventing the possibility of an IllegalStateException.

After the fix: Screen_recording_20240406_140113.webm

Tested on Pixel 8 API 34.

Closes #1117