zom / Zom-Android-XMPP

THIS PROJECT IS NOW CLOSED. WE HAVE MOVED TO A NEW ZOM 2.0 MATRIX CORE. FOLLOW THE LINK!
https://github.com/zom/zom-android-matrix
GNU General Public License v3.0
141 stars 66 forks source link

Disable switches until we have a session #479

Closed N-Pex closed 6 years ago

N-Pex commented 6 years ago

Couldn't really find a reason why encryption setting would not be persisted, unless you entered the group activity without a session and immediately toggled the switch. In that case the switch would appear as "on" but nothing would be persisted because session == null. Added a check to disable the switch(es) until we have a valid session. I don't know if this really was the problem?