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

Fixed a serialization bug

parent 1b09947f
No related branches found
No related tags found
No related merge requests found
...@@ -192,7 +192,8 @@ class IrcFormatSerializer @Inject constructor(private val context: Context) { ...@@ -192,7 +192,8 @@ class IrcFormatSerializer @Inject constructor(private val context: Context) {
val backgroundAfterCodeValid = afterBackgroundCode != null val backgroundAfterCodeValid = afterBackgroundCode != null
if ((!hasBackgroundAfter || backgroundAfterCodeValid) && if ((!hasBackgroundAfter || backgroundAfterCodeValid) &&
(!hasForegroundAfter || foregroundAfterCodeValid)) { (!hasForegroundAfter || foregroundAfterCodeValid) &&
(hasBackgroundAfter || hasForegroundAfter)) {
if (afterForegroundCode == backgroundCode && afterBackgroundCode == foregroundCode) { if (afterForegroundCode == backgroundCode && afterBackgroundCode == foregroundCode) {
writeSwap(afterForegroundCode, afterBackgroundCode) writeSwap(afterForegroundCode, afterBackgroundCode)
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment