Crash when exiting settings if a proxy dialog is displayed
This happens if either Tor or I2P proxying is enabled and the indicated app is not installed.
This is caused by line 4308, 4318, or 4345 in MainWebViewActivity:
Which causes a `Can not perform this action after onSaveInstanceState` error.
It looks like it is just attempting to display the dialog too quickly.
Updated by Soren Stoutner over 2 years ago
- Status changed from New to Closed
It turns out that the previous fix trying to detect if the activity window was active and running the `wait()` command no longer worked with target API 30, so all the previous fixes were broken. I implemented a more robust fix that stores pending dialogs in an array and displays them in `onStart()`.