1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 23:21:50 -05:00
Joe Steele 5d5fab3081 Fix default port setting reversion
The problem:  begin modifying the server settings by changing the security
type (which will change the port to a default value), then change the port
to a custom value, then change screen orientation.  The default port value
is restored, wiping out the custom value.

When onRestoreInstanceState() is called, the custom port value is
restored.  But the spinner doesn't actually restore its state at that
time.  Instead, it waits until View.layout(), at which time it posts a
runnable to call onItemSelected() if the restored state doesn't match the
state initialized in onCreate().  When onItemSelected() is eventually run
sometime later, it wipes out the custom port value that was restored.

The solution is to keep track of the spinner state ourselves and only
revert the port to a default when we see the spinner state changed by the
user.

This problem goes back to 4.904 and before.
2014-08-11 11:07:58 -04:00
..
2014-06-21 17:09:45 +02:00
2014-08-11 11:07:58 -04:00
2011-02-26 18:39:06 -06:00
2014-06-21 17:09:45 +02:00
2011-06-13 19:49:06 -04:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2013-02-11 15:19:15 +01:00
2014-06-21 17:09:45 +02:00
2012-09-13 09:10:37 -07:00
2013-07-01 23:32:04 -04:00