Fixes crash cluster 2ea26b00

parent fa46f6f0
Pipeline #471 failed with stages
in 9 minutes and 43 seconds
......@@ -43,9 +43,11 @@ open class ChatViewModel : QuasselViewModel() {
val bufferOpened = PublishSubject.create<Unit>()
fun onSaveInstanceState(outState: Bundle) {
/*
outState.putSerializable(
KEY_SELECTED_MESSAGES,
HashMap(selectedMessages.value))
*/
outState.putString(
KEY_BUFFER_SEARCH,
bufferSearch.value)
......@@ -76,12 +78,14 @@ open class ChatViewModel : QuasselViewModel() {
}
fun onRestoreInstanceState(savedInstanceState: Bundle) {
/*
if (savedInstanceState.containsKey(KEY_SELECTED_MESSAGES)) {
selectedMessages.onNext(
savedInstanceState.getSerializable(KEY_SELECTED_MESSAGES) as? HashMap<MsgId, FormattedMessage>
?: emptyMap()
)
}
*/
if (savedInstanceState.containsKey(KEY_BUFFER_SEARCH))
bufferSearch.onNext(savedInstanceState.getString(KEY_BUFFER_SEARCH, null))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment