Skip to content
Snippets Groups Projects
Commit 292fa5e8 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed a rotation bug

parent 53b1df15
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,16 @@ class ChatActivity : ServiceBoundActivity() { ...@@ -74,6 +74,16 @@ class ChatActivity : ServiceBoundActivity() {
= (logLevel.ordinal >= LogLevel.INFO.ordinal) = (logLevel.ordinal >= LogLevel.INFO.ordinal)
} }
override fun onRestoreInstanceState(savedInstanceState: Bundle?) {
super.onRestoreInstanceState(savedInstanceState)
errorList.text = savedInstanceState?.getString("log", "") ?: ""
}
override fun onSaveInstanceState(outState: Bundle?) {
outState?.putString("log", errorList.text.toString())
super.onSaveInstanceState(outState)
}
var account: AccountDatabase.Account? = null var account: AccountDatabase.Account? = null
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
thread.start() thread.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment