Documentation for postDelayed:
> Causes the Runnable r to be added to the message queue, to be run
> after the specified amount of time elapses.
> The runnable will be run on the thread to which this handler
> is attached.
> <b>The time-base is {@link android.os.SystemClock#uptimeMillis}.</b>
> Time spent in deep sleep will add an additional delay to execution.
TL;DR: if the CPU is in deep sleep, the postDelayed runnable won't be executed.
removes obsolete reconnect callbacks scheduled before
network reconnects to prevent unwanted reconnection
also renamed WebSocketConnection.onFailure to onNetworkFailure to clear confusion
- Removed comment
- Moved SSLSettings to its own top-level class
- Fixed picasso not setting SSL settings and failing to load images over
self-signed connection
- Moved certificate-related utilities to separate class
- Added settings method to return an entire SSLSettings object; refactored
methods using separate parameters to take single SSLSettings parameter
- Advanced Settings section on login page now hides / shows along with
other buttons to prevent it from showing up in front of the loading
spinner
- Fixed star imports
- Refactored applySslSettings as per code from merge request
- Fixed formatting
- Added fields to login page to a) disable ssl validation or b) select
a custom Certificate Authority certificate to use with the server.
- Changed visibility of widgets on login page from INVISIBLE to GONE so
they don't take up space while hidden (since this was causing weird
spacing issues with the new fields).
- Added state to settings to store ssl validation choice or certificate
data.
- Added fields to various HTTP methods to disable ssl validation or set
valid certificate authority if either setting is enabled.